Iván García pisze:
Currently in our Vietnamese hunspell dictionary (for firefox and Openoffice), if we misspell đường as đừong , we get three suggestions:

"đừ ong" (adding space, 1 operation)
"đong" (removing ừ , 1 operation)
"đừng" (removing o , 1 operation)

actually we'd like the system to propose us "đường" also, which implies 2 replacements operations: - replacing ừ -> ư and o -> ờ , is there any way to find out what is the max number of operations hunspell does? How to configure that in the .aff file?

Two things might help you. First, create a MAP section where you say that all accented versions of u are equivalent to u while searching for suggestions.

For Polish, I have set it like that:

MAP 8
MAP aą
MAP cć
MAP eę
MAP lł
MAP nń
MAP oóu
MAP sś
MAP zżź

And then look for REP section in .aff file. For example, in Polish, we could have:

REP 1
REP ł eu

This would mean: if you find a misspelled word, try to substitute "ł" with "eu" to see if you get a dictionary word. This is helpful when you need to replace a single character with a sequence of characters.

Regards
Marcin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to