Sha256: d9068873f9885ca6ad3be82595481e717b1ab299e4a2cbb2ce1286bf950f0f0b
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 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: 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: dict.check?('dog') # => true dict.check?('d0g') # => false Find the stems of a word: dict.stem('dogs') # => ["dog"] Suggest alternate spellings for a word: dict.suggest('arbitrage') # => ["arbitrage", "arbitrages", "arbitrager", "arbitraged", "arbitrate"] ## Requirements * [libhunspell] >= 1.2.0 * [ffi] ~> 1.0 ## Install $ gem install ffi-hunspell ## License Copyright (c) 2010-2013 Hal Brodigan See {file:LICENSE.txt} for license information. [libhunspell]: http://hunspell.sourceforge.net/ [ffi]: https://github.com/ffi/ffi
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffi-hunspell-0.3.0 | README.md |