Skip to content

Inflect plural and singular of nouns in German Language (NLP)

License

Notifications You must be signed in to change notification settings

ulrischa/GermanNumerus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GermanNumerus

Inflect plural and singular of nouns in German Language.

PHP port of pluralize and singularize part from the NLP library https://github.com/clips/pattern/blob/master/pattern/text/de/inflect.py

Usage

See example.php

Include

require_once('GermanNumerus.php');

use \ulrischa\GermanNumerus;

Generate plural for German word

echo GermanNumerus::pluralize("Kopf");

Generate singular for german word

echo GermanNumerus::singularize("Bodenverunreinigungen");

Accuracy

ca. 72% for pluralize() ca. 84% for singularize()

Releases

No releases published

Packages

No packages published

Languages