5.3.0 • Published 7 months ago

german-words v5.3.0

Weekly downloads
265
License
Apache-2.0
Repository
github
Last release
7 months ago

German Words

Provides information on German words:

  • Gender of German words, : Korpus is neutral, Friede is masculine, etc.
  • Case declination of words: the genitive of Herr is Herren.

Use german-words-dict as the linguistic resource.

Installation

npm install german-words

Usage

const GermanWords = require('german-words');
const GermanWordsList = require('german-words-dict/dist/words.json');

// F
console.log(GermanWords.getGenderGermanWord(null, GermanWordsList, 'Gurke'));

// Herren
console.log(GermanWords.getCaseGermanWord(null, GermanWordsList, 'Herr', 'GENITIVE', 'S'));

// Gurken
console.log(GermanWords.getCaseGermanWord(null, GermanWordsList, 'Gurke', 'NOMINATIVE', 'P'));

getGenderGermanWord returns the gender M F or N, based on:

  • a exception linguistic resource (put null in general, only use it to override standard linguistic resource)
  • a linguistic resource (see german-words-dict)
  • the word at its root form

getCaseGermanWord returns the declined word based on:

  • a linguistic resource (see german-words-dict)
  • first string param which is the word at its root form
  • second string param which is the case (NOMINATIVE ACCUSATIVE DATIVE GENITIVE)
  • third string param which is the number (S or P)

Both throw an error when the word is not found.

5.3.0

7 months ago

5.2.2

9 months ago

5.2.1

9 months ago

5.2.0

10 months ago

4.4.0

1 year ago

5.0.0

1 year ago

4.3.1

1 year ago

5.1.0

1 year ago

4.3.0

1 year ago

4.2.6

2 years ago

4.2.3

2 years ago

4.2.5

2 years ago

4.2.4

2 years ago

4.2.2

2 years ago

4.2.1

2 years ago

4.0.4

2 years ago

4.0.3

2 years ago

4.2.0

2 years ago

4.1.0

2 years ago

4.1.2

2 years ago

4.1.1

2 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.1.9

3 years ago

3.1.8

3 years ago

3.1.7

3 years ago

3.1.6

3 years ago

3.1.5

3 years ago

3.1.4

3 years ago

3.1.3

3 years ago

3.1.2

3 years ago

3.1.1

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

2.20.2

3 years ago

2.20.1

3 years ago

2.20.0

3 years ago

2.19.0

4 years ago

2.18.1

4 years ago

2.18.0

4 years ago

2.17.2

4 years ago

2.17.1

4 years ago

2.17.0

4 years ago

2.16.10

4 years ago

2.16.9

4 years ago

2.16.7

4 years ago

2.16.8

4 years ago

2.16.6

4 years ago

2.16.5

4 years ago

2.16.4

4 years ago

2.16.3

4 years ago

2.16.2

4 years ago

2.16.1

4 years ago

2.16.0

4 years ago

2.15.4

4 years ago

2.15.3

4 years ago

2.15.2

4 years ago

2.15.1

4 years ago

2.15.0

4 years ago

2.14.3

4 years ago

2.14.2

4 years ago

2.14.1

4 years ago

2.14.0

4 years ago

2.13.0

4 years ago

2.12.3

4 years ago

2.12.2

4 years ago

2.12.0

4 years ago

2.12.1

4 years ago

2.11.0

4 years ago

2.10.2

4 years ago

2.10.1

4 years ago

2.10.0

4 years ago

2.9.2

4 years ago

2.9.1

4 years ago

2.9.0

4 years ago

2.8.3

4 years ago

2.8.2

4 years ago

2.8.0

4 years ago

2.7.1

4 years ago

2.7.0

4 years ago

2.6.1

4 years ago

2.6.2

4 years ago

2.6.0

4 years ago

2.5.8

4 years ago

2.5.7

4 years ago

2.5.6

4 years ago

2.5.5

4 years ago

2.5.4

4 years ago

2.5.3

4 years ago

2.5.2

4 years ago

2.5.1

4 years ago

2.5.0

4 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.3.3

5 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.8

5 years ago