Skip to content

Inflect plural and singular of nouns in German Language

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

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GermanNumerus

Inflect plural and singular of nouns in German Language.

PHP Port of pluralize and singularize part from 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