{"id":16552529,"url":"https://github.com/postmodern/ffi-hunspell","last_synced_at":"2025-04-07T19:16:09.119Z","repository":{"id":1102205,"uuid":"965681","full_name":"postmodern/ffi-hunspell","owner":"postmodern","description":"Ruby FFI bindings for Hunspell.","archived":false,"fork":false,"pushed_at":"2023-12-28T05:06:50.000Z","size":122,"stargazers_count":49,"open_issues_count":7,"forks_count":23,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-31T16:16:29.755Z","etag":null,"topics":[],"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/postmodern.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2010-10-06T05:41:34.000Z","updated_at":"2025-01-24T20:41:53.000Z","dependencies_parsed_at":"2024-01-07T10:51:46.098Z","dependency_job_id":"654a851f-6e6a-4e5b-9460-150d2d464528","html_url":"https://github.com/postmodern/ffi-hunspell","commit_stats":{"total_commits":197,"total_committers":8,"mean_commits":24.625,"dds":0.07614213197969544,"last_synced_commit":"07d9e925d9d747c88b2c3b9d66cc5c457dff3e89"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmodern%2Fffi-hunspell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmodern%2Fffi-hunspell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmodern%2Fffi-hunspell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmodern%2Fffi-hunspell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postmodern","download_url":"https://codeload.github.com/postmodern/ffi-hunspell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247713258,"owners_count":20983683,"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":[],"created_at":"2024-10-11T19:45:08.573Z","updated_at":"2025-04-07T19:16:09.084Z","avatar_url":"https://github.com/postmodern.png","language":"Ruby","funding_links":[],"categories":["High Level Tasks"],"sub_categories":["Spelling and Error Correction"],"readme":"# ffi-hunspell\n\n[![CI](https://github.com/postmodern/ffi-hunspell/actions/workflows/ruby.yml/badge.svg)](https://github.com/postmodern/ffi-hunspell/actions/workflows/ruby.yml)\n[![Code Climate](https://codeclimate.com/github/postmodern/ffi-hunspell.svg)](https://codeclimate.com/github/postmodern/ffi-hunspell)\n\n* [Source](https://github.com/postmodern/ffi-hunspell)\n* [Issues](https://github.com/postmodern/ffi-hunspell/issues)\n* [Documentation](http://rubydoc.info/gems/ffi-hunspell/frames)\n\n## Description\n\nRuby FFI bindings for [Hunspell][libhunspell].\n\n## Examples\n\nOpen a dictionary:\n\n```rb\nrequire 'ffi/hunspell'\n    \nFFI::Hunspell.dict do |dict|\n  # ...\nend\n\nFFI::Hunspell.dict('en_GB') do |dict|\n  # ...\nend\n\ndict = FFI::Hunspell.dict('en_GB')\n# ...\ndict.close\n```\n\nCheck if a word is valid:\n\n```rb\ndict.check?('dog')\n# =\u003e true\n\ndict.check?('d0g')\n# =\u003e false\n```\n\nFind the stems of a word:\n\n```rb\ndict.stem('dogs')\n# =\u003e [\"dog\"]\n```\n\nSuggest alternate spellings for a word:\n\n```rb\ndict.suggest('arbitrage')\n# =\u003e [\"arbitrage\", \"arbitrages\", \"arbitrager\", \"arbitraged\", \"arbitrate\"]\n```\n\n## Requirements\n\n* [libhunspell] \u003e= 1.2.0, \u003c= 1.7.0\n* [ffi] ~\u003e 1.0\n\n## Install\n\n```sh\n$ gem install ffi-hunspell\n```\n\n### libhunspell\n\n* Debian / Ubuntu:\n\n      $ sudo apt install libhunspell-dev hunspell-en-us\n\n* RedHat / Fedora:\n\n      $ sudo dnf install hunspell-devel hunspell-en\n\n* macOS:\n\n      $ brew install hunspell\n\n## License\n\nCopyright (c) 2010-2021 Hal Brodigan\n\nSee {file:LICENSE.txt} for license information.\n\n[libhunspell]: http://hunspell.github.io/\n[ffi]: https://github.com/ffi/ffi#readme\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmodern%2Fffi-hunspell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostmodern%2Fffi-hunspell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmodern%2Fffi-hunspell/lists"}