AppendToWordList - Maple Help

Home : Support : Online Help : Education : EssayTools : AppendToWordList

EssayTools

 AppendToWordList
 append to the word list
 SetWordList
 set or override the word list
 GetWordList
 get the word list
 GetWordTable
 get the words in table form

 Calling Sequence SetWordList( words ) AppendToWordList( words )

Parameters

 words - list or array of strings

Description

 • The default word list is loaded with approximately 114000 English words. This list is primarily used for checking and correcting spelling.  The SetWordList and AppendToWordList commands allow you to work with an alternate word list, perhaps a different language, or augment the existing word list with words that would not normally be found in a dictionary.
 • The GetWordList command returns the current word list -- a list of strings.
 • The GetWordTable command returns a table of the form word=1, which is useful for testing the existence of words in the list (as opposed to calling member).
 • This function is part of the EssayTools package, so it can be used in the short form SetWordList(..) only after executing the command with(EssayTools). However, it can always be accessed through the long form of the command by using EssayTools[SetWordList](..).

Examples

 > $\mathrm{with}\left(\mathrm{EssayTools}\right)$
 $\left[{\mathrm{AppendToWordList}}{,}{\mathrm{BinaryCosineCoefficient}}{,}{\mathrm{BinaryDiceCoefficient}}{,}{\mathrm{BinaryJaccardCoefficient}}{,}{\mathrm{BuildScoreModel}}{,}{\mathrm{CosineCoefficient}}{,}{\mathrm{CountMisspellings}}{,}{\mathrm{CountUseOfAllWords}}{,}{\mathrm{CountUseOfEachWord}}{,}{\mathrm{DetectPlagiarism}}{,}{\mathrm{DiceCoefficient}}{,}{\mathrm{GetWordList}}{,}{\mathrm{GetWordTable}}{,}{\mathrm{IsAdjective}}{,}{\mathrm{IsAdverb}}{,}{\mathrm{IsConjunction}}{,}{\mathrm{IsDefiniteArticle}}{,}{\mathrm{IsIndefiniteArticle}}{,}{\mathrm{IsInterjection}}{,}{\mathrm{IsIntransitiveVerb}}{,}{\mathrm{IsNominative}}{,}{\mathrm{IsNoun}}{,}{\mathrm{IsNounPhrase}}{,}{\mathrm{IsPlural}}{,}{\mathrm{IsPreposition}}{,}{\mathrm{IsPronoun}}{,}{\mathrm{IsTransitiveVerb}}{,}{\mathrm{IsUsuallyParticipleVerb}}{,}{\mathrm{IsVerb}}{,}{\mathrm{JaccardCoefficient}}{,}{\mathrm{Lemma}}{,}{\mathrm{Misspellings}}{,}{\mathrm{PartOfSpeech}}{,}{\mathrm{QuadraticWeightedKappa}}{,}{\mathrm{Reduce}}{,}{\mathrm{Score}}{,}{\mathrm{SetWordList}}{,}{\mathrm{SimilarityScore}}{,}{\mathrm{SpellCorrectWord}}{,}{\mathrm{WordUse}}\right]$ (1)
 > $\mathrm{Misspellings}\left("amadeupword is not in the word list"\right)$
 $\left[{"amadeupword"}\right]$ (2)
 > $\mathrm{AppendToWordList}\left(\left["amadeupword"\right]\right)$
 ${1}$ (3)
 > $\mathrm{Misspellings}\left("amadeupword IS in the word list"\right)$
 $\left[\right]$ (4)

Compatibility

 • The EssayTools[AppendToWordList] and EssayTools[SetWordList] commands were introduced in Maple 17.
 • The EssayTools[GetWordList] and EssayTools[GetWordTable] commands were introduced in Maple 2016.