Sha256: dde33ccd8c5b95e05b9eee980e1af34be9c20ed099cf565ddcde6c8608b2adf9
Contents?: true
Size: 1.23 KB
Versions: 4
Compression:
Stored size: 1.23 KB
Contents
# ffi-hunspell * [Source](https://github.com/postmodern/ffi-hunspell) * [Issues](https://github.com/postmodern/ffi-hunspell/issues) * [Documentation](http://rubydoc.info/gems/ffi-hunspell/frames) * [Email](postmodern.mod3 at gmail.com) [![Build Status](https://secure.travis-ci.org/postmodern/ffi-hunspell.png?branch=master)](https://travis-ci.org/postmodern/ffi-hunspell) ## Description Ruby FFI bindings for [Hunspell][libhunspell]. ## Examples Open a dictionary: ```rb require 'ffi/hunspell' FFI::Hunspell.dict do |dict| # ... end FFI::Hunspell.dict('en_GB') do |dict| # ... end dict = FFI::Hunspell.dict('en_GB') # ... dict.close ``` Check if a word is valid: ```rb dict.check?('dog') # => true dict.check?('d0g') # => false ``` Find the stems of a word: ```rb dict.stem('dogs') # => ["dog"] ``` Suggest alternate spellings for a word: ```rb dict.suggest('arbitrage') # => ["arbitrage", "arbitrages", "arbitrager", "arbitraged", "arbitrate"] ``` ## Requirements * [libhunspell] >= 1.2.0 * [ffi] ~> 1.0 ## Install ```sh $ gem install ffi-hunspell ``` ## License Copyright (c) 2010-2016 Hal Brodigan See {file:LICENSE.txt} for license information. [libhunspell]: http://hunspell.sourceforge.net/ [ffi]: https://github.com/ffi/ffi
Version data entries
4 entries across 4 versions & 3 rubygems
Version | Path |
---|---|
ffi-hunspell-0.5.0 | README.md |
tolq-ffi-hunspell-0.5.0 | README.md |
ffi-hunspell-wtchappell-0.4.0 | README.md |
ffi-hunspell-0.4.0 | README.md |