5.3.0 • Published 7 months ago

german-adjectives v5.3.0

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

german-adjectives

Agreement of German adjectives, based on the gender and number of the word, and the case. You can use german-adjectives-dict as the linguistic resource.

Installation

npm install german-adjectives

Usage

const GermanAdjectivesLib = require('german-adjectives');
const GermanAdjectives = require('german-adjectives-dict/dist/adjectives.json');

// neuen
console.log(GermanAdjectivesLib.agreeGermanAdjective(null, GermanAdjectives, 'neu', 'DATIVE', 'M', 'S', 'DEFINITE'));

One single function agreeGermanAdjective that takes multiple parameters and return the agreed adjective:

  • exception list on linguistic resources (elements in that list will override elements in second parameter); in general just put null here
  • linguistic resource (list of adjectives): for the format see below and german-adjectives-dict lib
  • adjective: the adjective to agree,
  • germanCase: NOMINATIVE ACCUSATIVE DATIVE GENITIVE
  • gender gender of the word; M F or N
  • number: number of the word; S or P
  • det: determiner; DEFINITE INDEFINITE or DEMONSTRATIVE
[
  "Dortmunder":{  
    "AKK":{  
        "DEF":{  
          "P":"Dortmunder",
          "F":"Dortmunder",
          "M":"Dortmunder",
          "N":"Dortmunder"
        },
        "IND":{  
          "P":"Dortmunder",
          "F":"Dortmunder",
          "M":"Dortmunder",
          "N":"Dortmunder"
        },
        "SOL":{  
          "P":"Dortmunder",
          "F":"Dortmunder",
          "M":"Dortmunder",
          "N":"Dortmunder"
        }
    },
    "DAT":{  
      ...
    },
    "GEN":{  
      ...
    },
    "NOM":{  
      ...
    }
  },
  ...
]

Todo

Add more possible determiners.

dependencies and licences

german-pos-dict provides linguistic binary resources under CC-BY-SA-4.0, which autorises commercial usages. It also contains an export.sh script to generate a textual dump using https://github.com/languagetool-org. dictionary.dump (zipped in dictionary.zip) is this textual dump. It remains under CC-BY-SA-4.0 licence.

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

5 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.3.5

5 years ago