Sample Header Ad - 728x90

How to maintain a list of names for the Hunspell spell checker?

2 votes
0 answers
392 views
**Hunspell** should help the user to write names properly. The names should be defined in the home directory of the user, so that every user can define his or her own list of important names. If a user starts to create a dictionary of names it would be very feasible to **check for the full names**: # Name # should be detected as Walter Brattain # correct Walter Britain # wrong Leon Cooper # correct Leon Copper # wrong Léon Brillouin # correct Leon Brillouin # wrong **How can I generate the required dictionary?** # I tried so far cat ~/.hunspell_default/mynames.dic Walter Brattain Leon Cooper Léon Brillouin cat ~/.hunspell_default/mynames.aff SET UTF-8 TRY esianrtolcdugmphbyfvkwzESIANRTOLCDUGMPHBYFVKWZ' But this does not help Hunspell to find the misspelled names. ~/.hunspell_default$ echo "Walter Britain and Leon Copper visit Leon Brillouin." | hunspell -m -p mynames.dic Walter st:Walter Walter st:Walt fl:R Britain st:Britain and st:and Leon st:Leon Copper st:copper Copper st:cop fl:R visit st:visit Leon st:Leon Brillouin st:Brillouin
Asked by Jonas Stein (4298 rep)
Jan 11, 2019, 10:15 PM
Last activity: Jan 12, 2019, 12:36 PM