new DictionaryEN()
- Description:
Constructs an instance of the English Dictionary. Calls the superclass constructor to initialize the dictionary.
- Source:
Extends
- Dictionary
Methods
word(index) → {string}
- Description:
Return a word from the list by its index.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
index |
number | The index of the word in the list. |
Throws:
-
Will throw an error if the index is not a valid number.
- Type
- Error
Returns:
- The word at the given index.
- Type
- string
wordList() → {Array.<string>}
- Description:
Return the word list of this dictionary
- Source:
Returns:
- The list of words in the dictionary.
- Type
- Array.<string>