Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding a dictionary to Aspell/Pspell
    text
    copied!<p>I have Aspell successfully installed and have compiled PHP with Pspell, and everything seems to be working fine.</p> <p>The only thing I am unable to do, is create a list of "ignore" words, or a personal dictionary, however you want to refer to it.</p> <p>I've tried the steps outlined <a href="http://blog.samat.org/2008/11/02/creating-your-own-personal-aspell-dictionary" rel="noreferrer">here</a> and <a href="http://developer.mindtouch.com/MindTouch_Deki/FAQ/Editor/How_do_I...Add_words_to_the_aspell_Dictionary" rel="noreferrer">here</a> but neither had any effect.</p> <p>As described at the above link and on the <a href="http://aspell.net/man-html/Format-of-the-Personal-and-Replacement-Dictionaries.html#Format-of-the-Personal-and-Replacement-Dictionaries" rel="noreferrer">Aspell documentation</a>, I tried creating a personal dictionary as outlined in the manual:</p> <pre><code>personal_ws-1.1 en 0 Rubiflex quasirhombicosidodecahedron </code></pre> <p>I placed this in the aspell directory, my home directory, the root directory, and it was never picked up. The Aspell documentation never actually says where it should live or how to otherwise load it.</p> <p>The other reference is to <a href="http://aspell.net/man-html/Creating-an-Individual-Word-List.html#Creating-an-Individual-Word-List" rel="noreferrer">creating an individual word list</a>:</p> <blockquote> <p>Create a txt file with the words that you'd like to add to the dictionary, where each word is on a separate line then run the following command:</p> <pre><code> aspell --lang=en create master ./custom.rws &lt; test.txt </code></pre> <p>This will create a file called custom.rws that will contain the aspell encoded word(s) for the dictionary. You can name the file anything you want as long as the extension is .rws. Now to add this to the dictionary move the custom.rws file to the dictionary location which is /usr/lib/aspell by running the following command:</p> <p><code>cp custom.rws /usr/lib/aspell/</code></p> <p>To finish adding it to the dictionary change into the dictionary directory by running the following:</p> <pre><code> cd /usr/lib/aspell/ then edit the following file: nano en_US.multi </code></pre> <p>and add the following line: </p> <p><code>add custom.rws</code></p> </blockquote> <p>Neither of these methods seemed to work and I cannot find any clear examples of how to properly add a dictionary or word list. These were the two most promising methods I was able to find and neither worked. Does anyone know how I can get Aspell to use a personal dictionary file I create?</p> <p>Thank you for your time.</p> <p><strong>EDIT</strong>: The <a href="http://docs.moodle.org/19/en/spell_check#Creating_Custom_Dictionaries" rel="noreferrer">steps outlined here worked for me</a>. The are much like the ones <a href="http://developer.mindtouch.com/en/kb/Add_words_to_the_aspell_Dictionary" rel="noreferrer">outlined here</a> except that the latter refers to "en_US.multi" where the former refers to "en.multi". After adding the custom list to en.multi (as opposed to en_US.multi), it was working as expected.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload