Provides information on Italian words:
- Gender of Italian words, : cameriera is feminine, cameriere is masculine, etc.
- Number declination of words: the plural of cameriera is cameriere.
It is based on morph-it which provides an extensive morphological resource for the Italian language.
npm install italian-words
var ItalianWords = ;// Fconsole;// libriconsole;// aranceconsole;
getGenderItalianWord takes a single string param which is the word at its root form and returns the gender M or F.
getNumberItalianWord returns the declined word based on:
- first string param which is the word at its root form
- second string param which is the number (S or P)
They take an optional second parameter: a list of word data, which completes the original list (and overrides when there are collisions); for format see the output of
Both throw an error when the word is not found.
Dependancies and licences
morph-it provides an extensive morphological resource for the Italian language. It is dual-licensed free software and can be redistributed it and/or modified under the terms of the under the Creative Commons Attribution ShareAlike 2.0 License and the GNU Lesser General Public License.
The derived file
adjectives.json remains under the same licence.