new Dictionary(name)
A dictionary is a collection of chapters
Parameters:
| Name | Type | Description |
|---|---|---|
name |
- Source:
Extends
Methods
-
add(word, fn, options)
-
Add new word to a chapter
Parameters:
Name Type Argument Description wordString fnfunction optionsMixed <optional>
- Inherited From:
- Source:
-
chap(name) → {Chapter|Array.<Chapter>}
-
Returns a chapter or a list of available chapters
Parameters:
Name Type Argument Description nameString <optional>
name of a chapter or empty to list all - Source:
Returns:
-
execute(word, options) → {Dictionary}
-
Directly execute a word
Parameters:
Name Type Description wordString optionsObject - Inherited From:
- Source:
Returns:
the current dictionary- Type
- Dictionary
-
list() → {Object}
-
- Inherited From:
- Source:
Returns:
[description]- Type
- Object