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