{"id":19725325,"url":"https://github.com/bodacious/flesch_kincaid","last_synced_at":"2025-04-29T23:30:40.675Z","repository":{"id":56846702,"uuid":"87669269","full_name":"Bodacious/flesch_kincaid","owner":"Bodacious","description":"Simple, super-lightweight gem for calculating the Flesch Kincaid score in Ruby","archived":false,"fork":false,"pushed_at":"2017-04-08T23:05:07.000Z","size":12,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-22T06:40:48.217Z","etag":null,"topics":["flesch-kincaid","readability","readability-metrics","readability-scores","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bodacious.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-08T22:58:53.000Z","updated_at":"2023-02-14T17:27:29.000Z","dependencies_parsed_at":"2022-09-09T01:22:41.283Z","dependency_job_id":null,"html_url":"https://github.com/Bodacious/flesch_kincaid","commit_stats":null,"previous_names":["katanacode/flesch_kincaid"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bodacious%2Fflesch_kincaid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bodacious%2Fflesch_kincaid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bodacious%2Fflesch_kincaid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bodacious%2Fflesch_kincaid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bodacious","download_url":"https://codeload.github.com/Bodacious/flesch_kincaid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251599710,"owners_count":21615571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flesch-kincaid","readability","readability-metrics","readability-scores","ruby"],"created_at":"2024-11-11T23:29:23.987Z","updated_at":"2025-04-29T23:30:37.991Z","avatar_url":"https://github.com/Bodacious.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FleschKincaid\n\nSimple, super-lightweight gem for calculating the Flesch Kincaid score for a given block of text.\n\n## Vs Odyssey\n\nWe needed to calculate F.K. scores in Ruby.\n\nThere's a similar gem named [Odyssey](https://github.com/cameronsutter/odyssey), which provides some additional formulae too. However, that codebase is a bit larger and slower.\n\n[flesch_kincaid](https://github.com/KatanaCode/flesch_kincaid) is more than 2x faster (see the [benchmark](benchmarks/odyssey.rb))\n\nIf you just need standard Flesch Kincaid scores, this gem should do the trick.\n\n    Warming up --------------------------------------\n                 Odyssey    31.000  i/100ms\n          Flesch Kincaid    75.000  i/100ms\n    Calculating -------------------------------------\n                 Odyssey    323.004  (± 4.0%) i/s -      1.643k in   5.095737s\n          Flesch Kincaid    764.062  (± 3.3%) i/s -      3.825k in   5.012054s\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'flesch_kincaid'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install flesch_kincaid\n\n## Usage\n\n``` ruby\n@result = FleschKincaid.read(\"I can't explain myself, I'm afraid, sir' said Alice, 'because I'm not myself, you see.\")\n@result.score # =\u003e 75.77\n@result.grade # =\u003e \"7th grade\"\n@result.notes # =\u003e \"Fairly easy to read.\"\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/katanacode/flesch_kincaid.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodacious%2Fflesch_kincaid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbodacious%2Fflesch_kincaid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodacious%2Fflesch_kincaid/lists"}