Dictionary

Dictionary

A Dictionary class represents a language, a dictionary of valid words in that language, and a rule set (aff file) that defines valid word forms (i.e. plurals, capitilisation, etc)

Constructor

new Dictionary(dictionary)

Create a Dictionary class from a dictionary object
Properties:
Name Type Description
dictionary.language string a fully formed language code i.e. 'en-au' or 'de-de'
dictionary.dic string a complete string representation of a dic file
dictionary.aff string a complete string representation of an aff file
Source:
See:
Parameters:
Name Type Description
dictionary object a dictionary object