Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Latest commit

 

History

History
79 lines (53 loc) · 2.52 KB

README.md

File metadata and controls

79 lines (53 loc) · 2.52 KB

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.