User:Mutante/German nouns/source

Generating User:Mutante/German nouns
This is how i generate the lists:


 * run "check_nouns.php" like:
 * php check_nouns.php where is replaced with the word to start with

I run that on a remote server where i have a PHP-cli on the shell. This gives me lines like this:

I *Testament - uses 'infl|de|noun' template X *Testosteron - could not find 'de-noun' nor 'infl|de|noun' template X *Tetanus - could not find 'de-noun' nor 'infl|de|noun' template I *Tetraeder - uses 'infl|de|noun' template X *Teufelsdutzend - could not find 'de-noun' nor 'infl|de|noun' template I *Textmarker - uses 'infl|de|noun' template

The first character of each line is either "B", "G", "I", or "X". The resulting files can then easily be sorted with a text editor, so the list is grouped by "color", afterwards the first character is discarded and the list is sorted again, so its grouped alphabetically. Finally the result is pasted into of the A-Z pages manually.

The meaning of the letters can be found on User:Mutante/German_nouns and in the source code below. The checks are based on "de" specific templates, so it needs adjustment for other languages.

(Hint: Actually i run php check_nouns.php Word | tee Word.txt to watch the output and redirect into a file at the same time)

If you find this useful, help me fix some of the listed words or modify / enhance the code to make it work for other languages. Mutante 14:02, 4 April 2010 (UTC)