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

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












2















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









share|improve this question



















  • 1





    Do you have a $HOME/.hunspell_default ?

    – D McKeon
    Jan 11 at 23:09











  • @DMcKeon No. Thank you. My dict folder name was wrong. I will change it. Is it sufficient to put the number of words and the wordlist as in the box simply in $HOME/.hunspell_default/mynames.dic? Or do I have to convert it and create the .aff file too?

    – Jonas Stein
    Jan 11 at 23:19











  • Rather than trying to summarize, I'll just quote: > A dictionary file (*.dic) contains a list of words, one per line and refer you to: manpages.ubuntu.com/manpages/bionic/man5/hunspell.5.html

    – D McKeon
    Jan 13 at 22:52
















2















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









share|improve this question



















  • 1





    Do you have a $HOME/.hunspell_default ?

    – D McKeon
    Jan 11 at 23:09











  • @DMcKeon No. Thank you. My dict folder name was wrong. I will change it. Is it sufficient to put the number of words and the wordlist as in the box simply in $HOME/.hunspell_default/mynames.dic? Or do I have to convert it and create the .aff file too?

    – Jonas Stein
    Jan 11 at 23:19











  • Rather than trying to summarize, I'll just quote: > A dictionary file (*.dic) contains a list of words, one per line and refer you to: manpages.ubuntu.com/manpages/bionic/man5/hunspell.5.html

    – D McKeon
    Jan 13 at 22:52














2












2








2








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









share|improve this question
















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






syntax spell-checking dictionary hunspell






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 12 at 12:36







Jonas Stein

















asked Jan 11 at 22:15









Jonas SteinJonas Stein

1,17121136




1,17121136







  • 1





    Do you have a $HOME/.hunspell_default ?

    – D McKeon
    Jan 11 at 23:09











  • @DMcKeon No. Thank you. My dict folder name was wrong. I will change it. Is it sufficient to put the number of words and the wordlist as in the box simply in $HOME/.hunspell_default/mynames.dic? Or do I have to convert it and create the .aff file too?

    – Jonas Stein
    Jan 11 at 23:19











  • Rather than trying to summarize, I'll just quote: > A dictionary file (*.dic) contains a list of words, one per line and refer you to: manpages.ubuntu.com/manpages/bionic/man5/hunspell.5.html

    – D McKeon
    Jan 13 at 22:52













  • 1





    Do you have a $HOME/.hunspell_default ?

    – D McKeon
    Jan 11 at 23:09











  • @DMcKeon No. Thank you. My dict folder name was wrong. I will change it. Is it sufficient to put the number of words and the wordlist as in the box simply in $HOME/.hunspell_default/mynames.dic? Or do I have to convert it and create the .aff file too?

    – Jonas Stein
    Jan 11 at 23:19











  • Rather than trying to summarize, I'll just quote: > A dictionary file (*.dic) contains a list of words, one per line and refer you to: manpages.ubuntu.com/manpages/bionic/man5/hunspell.5.html

    – D McKeon
    Jan 13 at 22:52








1




1





Do you have a $HOME/.hunspell_default ?

– D McKeon
Jan 11 at 23:09





Do you have a $HOME/.hunspell_default ?

– D McKeon
Jan 11 at 23:09













@DMcKeon No. Thank you. My dict folder name was wrong. I will change it. Is it sufficient to put the number of words and the wordlist as in the box simply in $HOME/.hunspell_default/mynames.dic? Or do I have to convert it and create the .aff file too?

– Jonas Stein
Jan 11 at 23:19





@DMcKeon No. Thank you. My dict folder name was wrong. I will change it. Is it sufficient to put the number of words and the wordlist as in the box simply in $HOME/.hunspell_default/mynames.dic? Or do I have to convert it and create the .aff file too?

– Jonas Stein
Jan 11 at 23:19













Rather than trying to summarize, I'll just quote: > A dictionary file (*.dic) contains a list of words, one per line and refer you to: manpages.ubuntu.com/manpages/bionic/man5/hunspell.5.html

– D McKeon
Jan 13 at 22:52






Rather than trying to summarize, I'll just quote: > A dictionary file (*.dic) contains a list of words, one per line and refer you to: manpages.ubuntu.com/manpages/bionic/man5/hunspell.5.html

– D McKeon
Jan 13 at 22:52











0






active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f494034%2fhow-to-maintain-a-list-of-names-for-the-hunspell-spell-checker%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f494034%2fhow-to-maintain-a-list-of-names-for-the-hunspell-spell-checker%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?