Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby bindings to Hunspell 1.2.x with iconv support
C Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ext
spec
.rspec
README.md
Rakefile
VERSION
hunspell-i18n.gemspec

README.md

Ruby bindings for Hunspell 1.2.x

This version expects to receive the word in UTF-8 encoding, and it will then use iconv behind the scenes in order to convert to and from the dictionary encoding.

Usage

prefix = '/usr/share/myspell/'  # Fedora
speller = Hunspell.new(prefix + 'en_US.aff', prefix + 'en_US.dic')
speller.valid?('dog')           # -> true
speller.valid?('dpg')           # -> false
speller.suggest('dpg')          # -> ["dog", "dg", "pg", "deg", "dig", ...]

Copyright 2011 Roman Shterenzon, released under the MIT license

Something went wrong with that request. Please try again.