cfinke / Typo.js

A client-side JavaScript spellchecker that uses Hunspell-style dictionaries.
Other
501 stars 110 forks source link

Latin affixes not read correctly #5

Closed dbolton closed 13 years ago

dbolton commented 13 years ago
var dictionary = new Typo("la", affData, dicData);
var is_spelled_correctly = dictionary.check("fideles") //should be true, but returns false
// (The word "fideles" is the plural form of "fidelis")

I used the Latin dictionary and affix files provided by OpenOffice.org http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/la-pack.zip

In case it is helpful, below is the fragment of Latin that I was proofing. All the words pass spell check in Thunderbird using https://addons.mozilla.org/en-US/thunderbird/addon/latin-dictionary/

"1. Adeste, fideles, Laeti triumphantes

  1. Cantet nunc hymnos Chorus angelorum;
  2. Ergo qui natus die hodierna"
cfinke commented 13 years ago

Defect confirmed; looks like the Latin affix file uses a slightly different format than the English affix file I based the parser on.

cfinke commented 13 years ago

Fixed in commit f56e2b1e1c4294318d4f62f6186842b1540dc34e.