Git Product home page Git Product logo

readability-swift's Introduction

Readability-Swift

Determine readability and comprehension difficulty for contemporary English text.

  • iOS reference platform, 10.3 minimum version.
  • Example app and tests included.

Metrics Included

Installation

CocoaPods is the easiest way to use this project. Add the following to your project Podfile:

use_modular_headers!

pod 'Readability-Swift', :git => 'https://github.com/brackendev/Readability-Swift.git'

It is a good idea to specifiy the commit. For example:

pod 'Readability-Swift', :git => 'https://github.com/brackendev/Readability-Swift.git', commit => '31c183bcda89b205072bcee3d3bcd5f5ee1bd707'

Example Usage

  1. Import it:

    import Readability_Swift
  2. Use it:

    Readability.automatedReadabilityIndexForString("Test")
    Readability.colemanLiauIndexForString("Test")
    Readability.fleschKincaidGradeLevelForString("Test")
    Readability.fleschReadingEaseForString("Test")
    Readability.gunningFogScoreForString("Test")
    Readability.smogGradeForString("Test")

Note: See the example view controller.

Acknowledgements

This project makes use of the following third-party libraries:

Ports

Author

Bracken Spencer

License

Readability-Swift is released under the MIT license. See the LICENSE file for more info.

readability-swift's People

Contributors

brackendev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

fossabot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.