Linguistic resources

This is the documentation for 2.1.6 version, which is not the latest version. Consider upgrading to 3.4.0.

Depending on the output language, RosaeNLG will load some linguistic resources and use linguistic libraries, to make agreements and to conjugate verbs.

Table 1. Used by all languages
Resource Usage Licence

rosaenlg-filter

filter sub module

Apache 2.0 (same author as RosaeNLG)

random-js

random numbers

MIT

date-fns

dates and times formatting.

MIT

numeral.js

numbers formatting. numeral can also be accessed directly via util.numeral

MIT

n2words

Cardinal numbers in letters: 5 → five etc. (except for German)

MIT

rosaenlg-n2words

fork of n2words, with additionnal packaging

MIT

snowball-stemmer.jsx

stemming

MIT

stopwords-de, stopwords-en, stopwords-es, stopwords-fr, stopwords-it

lists of stop words

MIT

wink-tokenizer

tokenizer

MIT

Table 2. English specific
Resource Usage Licence

english-determiners

generates English determiners

Apache 2.0 (same author as RosaeNLG)

english-verbs-helper

To conjugate English verbs

Apache 2.0 (same author as RosaeNLG)

english-verbs-gerunds

English gerunds (ing), based on WordNet

Apache 2.0 (same author as RosaeNLG)

WordNet

English gerunds (ing) & list of words or adjectives that must be preceded by an

WordNet licence

english-verbs-irregular

English irregular verbs

Apache 2.0 (same author as RosaeNLG)

english-a-an

English a an helper

Apache 2.0 (same author as RosaeNLG)

english-a-an-list

list of words or adjectives that must be preceded by an

Apache 2.0 (same author as RosaeNLG)

english-ordinals

ordinal numbers in English

MIT (same author as RosaeNLG)

better-title-case

title case (for titles) in English

MIT

number-to-words

ordinal numbers in English

MIT

Table 3. French specific
Resource Usage Licence

french-adjectives

agreement of French adjectives

Apache 2.0 (same author as RosaeNLG)

french-adjectives-wrapper

technical wrapper over french-adjectives

Apache 2.0 (same author as RosaeNLG)

french-determiners

generates French determiners

Apache 2.0 (same author as RosaeNLG)

Aspirated h

French words that are 'aspiré' (vs. 'muet')

CC BY-SA 3.0

french-contractions

French words that are 'aspiré' (vs. 'muet'), for determiners, adjectives, and contractions

Apache 2.0 (same author as RosaeNLG)

french-ordinals

ordinal numbers in French

Apache 2.0 (same author as RosaeNLG)

LEFFF - lexique des formes fléchies du français

gender and plural of French words

LGPLLR

french-verbs

agreement of French verbs

Apache 2.0 (same author as RosaeNLG)

french-verbs-lefff

French verbs resource, based on LEFFF

Apache 2.0 (same author as RosaeNLG)

french-verbs-intransitive

French intransitive verbs

Apache 2.0 (same author as RosaeNLG)

french-words

gender and plural of French words

Apache 2.0 (same author as RosaeNLG)

french-words-gender-lefff

French words resource, based on LEFFF

Apache 2.0 (same author as RosaeNLG)

lefff-helper

wrapper on a Lefff database

Apache 2.0 (same author as RosaeNLG)

rosaenlg-pluralize-fr

pluralize nouns (through french-words)

MIT (same author as RosaeNLG)

pluralize-fr

pluralize nouns

MIT

titlecase-french

title case (for titles) in French

MIT

Table 4. German specific
Resource Usage Licence

German part-of-speech dictionary (german-pos-dict)

German adjectives, words and verbs agreement

CC-BY-SA-4.0 License

german-adjectives

case for German adjectives

Apache 2.0 (same author as RosaeNLG)

german-adjectives-dict

German adjectives linguistic resource (based on german-pos-dict)

Apache 2.0 (same author as RosaeNLG)

german-determiners

generates German determiners

Apache 2.0 (same author as RosaeNLG)

german-dict-helper

wrapper on a German language database

Apache 2.0 (same author as RosaeNLG)

german-ordinals

ordinal numbers in German

Apache 2.0 (same author as RosaeNLG)

german-verbs

German verbs management

Apache 2.0 (same author as RosaeNLG)

german-verbs-dict

linguistic resource for german-verbs (based on german-pos-dict)

Apache 2.0 (same author as RosaeNLG)

german-words

German words management

Apache 2.0 (same author as RosaeNLG)

german-words-dict

linguistic resource for german-words (based on german-pos-dict)

Apache 2.0 (same author as RosaeNLG)

Table 5. Italian specific
Resource Usage Licence

Morph-it!

agreement of Italian adjectives, words and verbs

CC BY-SA 2.0

italian-adjectives

agreement of Italian adjectives

Apache 2.0 (same author as RosaeNLG)

italian-adjectives-dict

linguistic resource for italian-adjectives, based on morph-it

Apache 2.0 (same author as RosaeNLG)

italian-determiners

generates Italian determiners

Apache 2.0 (same author as RosaeNLG)

italian-ordinals-cardinals

Italian cardinal and ordinal numbers

Apache 2.0 (same author as RosaeNLG, with contributions)

italian-verbs

agreement of Italian verbs

Apache 2.0 (same author as RosaeNLG)

italian-verbs-dict

linguistic resource for italian-verbs, based on morph-it

Apache 2.0 (same author as RosaeNLG)

italian-words

agreement of Italian words

Apache 2.0 (same author as RosaeNLG)

italian-words-dict

linguistic resource for italian-words, based on morph-it

Apache 2.0 (same author as RosaeNLG)

morph-it-helper

wrapper on morph-it database

Apache 2.0 (same author as RosaeNLG)

Table 6. Spanish specific
Resource Usage Licence

ordinal-spanish

ordinal numbers for Spanish

Apache 2.0

gender-es

gender of Spanish words

MIT

pluralize-es

plural of Spanish words

MIT

conjugator

Spanish verbs conjugation

Apache 2.0

rosaenlg-gender-es

gender of Spanish words, based on rules and exceptions

MIT (based on a fork of gender-es)

rosaenlg-pluralize-es

plural of Spanish words, based on rules and exceptions

MIT (based on a fork of pluralize-es)

spanish-adjectives

Spanish adjectives, based on rules and exceptions

Apache 2.0 (same author as RosaeNLG)

spanish-adjectives-wrapper

technical wrapper over spanish-adjectives

Apache 2.0 (same author as RosaeNLG)

spanish-determiners

generates Spanish determiners

Apache 2.0 (same author as RosaeNLG)

spanish-verbs

Spanish verbs conjugation, based on rules and exceptions

Apache 2.0 (based on conjugator)

spanish-verbs-wrapper

technical wrapper over spanish-verbs

Apache 2.0 (same author as RosaeNLG)

spanish-words

technical wrapper over rosaenlg-gender-es and rosaenlg-pluralize-es

Apache 2.0 (same author as RosaeNLG)