Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
ext
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Ruby bindings to Hunspell 1.2.x with iconv support

Resources

You can’t perform that action at this time.