Sha256: 5c2f6b40a41eb832b1a199e6464a633c14775e6c5faf0623c977ae9f7a557c19
Contents?: true
Size: 655 Bytes
Versions: 5
Compression:
Stored size: 655 Bytes
Contents
require "rubygems" # import gem package manager gem "hunspell" # load Hunspell module require "Hunspell" # inject Hunspell class to Ruby namespace # instantiate Hunspell with Hungarian affix and dictionary files # sp = Hunspell.new("hu_HU.aff", "hu_HU.dic") # spell check Hungarian word 'ablak' (window) => true # puts "Is 'ablak' correct? #{sp.spellcheck('ablak')}" # get suggestions for mispelled word 'paprika' # => ["kaprica", "patrica", "paprika", "papcica", # "papráca", "papruca", "paprima", "paprikáz", # "paprikása", "paprikás", "Papradnó" # ] # puts "Suggestions for 'paprica': " + sp.suggest("paprica").inspect
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
hunspell-1.1.0 | example.rb |
hunspell-1.0.0 | example.rb |
hunspell-0.1.7 | example.rb |
hunspell-0.1.6 | example.rb |
hunspell-0.1.5 | example.rb |