Dictionnary
RosaeNLG is bundled with linguistic resources, which are either rules or dictionnaries, depending on languages and resources.
While these default linguistic resources should be accurate and complete enough for most usecases, you may encounter situations where they need to be changed. You can either:
-
extend the resources: e.g. for new words, new adjectives or missing ones
-
override parts of the resources: for errors or alternative spelling; you can override only some of the properties, and not a complete word or adjective
Typically, in German, composed words like Sauerkraut are not in the default dictionnary.
Resources are:
-
words: use
setWordData('someWord', properties)
-
adjectives: use
setAdjData('someAdjective', properties)
-
verbs: TODO
setWordData and setAdjData are JavaScript functions, so use - setWordData… when in a template.
|
The properties that can be defined for each kind of resource depend on the language: for instance, some languages have a gender for words, while some don’t.
Properties per language and resource type
Language | Words | Adjectives | Verbs |
---|---|---|---|
en_US |
|
|
TODO |
fr_FR |
|
|
TODO |
de_DE |
|
|
TODO |
it_IT |
|
|
TODO |
es_ES |
|
|
TODO |