From 03fb51e528372eda3b027c30472dad8e6b5deaae Mon Sep 17 00:00:00 2001 From: Alexey Valikov Date: Sun, 12 Aug 2018 18:03:15 +0200 Subject: [PATCH] #66 Add inflection group to word form - Added inflection group property to the word form interface --- .../ukp/jwktl/api/IWiktionaryWordForm.java | 10 + .../jwktl/api/entry/WiktionaryWordForm.java | 13 + .../parser/de/DEWordFormHandlerTest.java | 419 +++++++++--------- 3 files changed, 233 insertions(+), 209 deletions(-) diff --git a/src/main/java/de/tudarmstadt/ukp/jwktl/api/IWiktionaryWordForm.java b/src/main/java/de/tudarmstadt/ukp/jwktl/api/IWiktionaryWordForm.java index de48ace..be6ac60 100644 --- a/src/main/java/de/tudarmstadt/ukp/jwktl/api/IWiktionaryWordForm.java +++ b/src/main/java/de/tudarmstadt/ukp/jwktl/api/IWiktionaryWordForm.java @@ -86,6 +86,16 @@ public interface IWiktionaryWordForm { /** Returns the {@link GrammaticalGender} of this word form or * null if no gender is specified or applicable. */ GrammaticalGender getGender(); + + /** + * Returns the index of the inflection group this word form belong to. + * Semantics of this property may differ from language to language. + * Roughly speaking, inflection group corresponds to the column in + * the inflection table. + * @return Index of the inflection group, -1 if there this word form + * does not belong to an inflection group. + */ + int getInflectionGroup(); /** Returns the {@link GrammaticalPerson} of this word form or * null if no person is specified or applicable. */ diff --git a/src/main/java/de/tudarmstadt/ukp/jwktl/api/entry/WiktionaryWordForm.java b/src/main/java/de/tudarmstadt/ukp/jwktl/api/entry/WiktionaryWordForm.java index 86e3b1e..8d58b0e 100644 --- a/src/main/java/de/tudarmstadt/ukp/jwktl/api/entry/WiktionaryWordForm.java +++ b/src/main/java/de/tudarmstadt/ukp/jwktl/api/entry/WiktionaryWordForm.java @@ -42,6 +42,7 @@ public class WiktionaryWordForm implements IWiktionaryWordForm { protected GrammaticalNumber grammaticalNumber; protected GrammaticalCase grammaticalCase; protected GrammaticalGender grammaticalGender; + protected int inflectionGroup = -1; protected GrammaticalPerson grammaticalPerson; protected GrammaticalTense grammaticalTense; protected GrammaticalMood grammaticalMood; @@ -93,6 +94,18 @@ public void setGender(final GrammaticalGender grammaticalGender) { this.grammaticalGender = grammaticalGender; } + @Override + public int getInflectionGroup() { + return this.inflectionGroup; + } + + /** Assigns the given inflection group to this word form. + * @param inflectionGroup index of the inflection group. + */ + public void setInflectionGroup(int inflectionGroup) { + this.inflectionGroup = inflectionGroup; + } + public GrammaticalPerson getPerson() { return grammaticalPerson; } diff --git a/src/test/java/de/tudarmstadt/ukp/jwktl/parser/de/DEWordFormHandlerTest.java b/src/test/java/de/tudarmstadt/ukp/jwktl/parser/de/DEWordFormHandlerTest.java index 2f42a82..94dcf39 100644 --- a/src/test/java/de/tudarmstadt/ukp/jwktl/parser/de/DEWordFormHandlerTest.java +++ b/src/test/java/de/tudarmstadt/ukp/jwktl/parser/de/DEWordFormHandlerTest.java @@ -55,8 +55,8 @@ public void testAberration() throws Exception { IWiktionaryPage page = parse("Aberration.txt"); IWiktionaryEntry entry = page.getEntry(0); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("Aberration", null, SINGULAR, null, actualIter.next()); - assertWordFormNoun("Aberrationen", null, PLURAL, null, actualIter.next()); + assertWordFormNoun("Aberration", null, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("Aberrationen", null, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } @@ -65,14 +65,14 @@ public void testHallo() throws Exception { IWiktionaryPage page = parse("Hallo.txt"); IWiktionaryEntry entry = page.getEntry(0); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("das Hallo", NOMINATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("die Hallos", NOMINATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("des Hallos", GENITIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("der Hallos", GENITIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("dem Hallo", DATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("den Hallos", DATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("das Hallo", ACCUSATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("die Hallos", ACCUSATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("das Hallo", NOMINATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("die Hallos", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("des Hallos", GENITIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("der Hallos", GENITIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("dem Hallo", DATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("den Hallos", DATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("das Hallo", ACCUSATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("die Hallos", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } @@ -81,19 +81,19 @@ public void testKiefer() throws Exception { IWiktionaryPage page = parse("Kiefer.txt"); IWiktionaryEntry entry = page.getEntry(0); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("die Kiefer", NOMINATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("die Kiefern", NOMINATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("der Kiefer", GENITIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("der Kiefern", GENITIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("der Kiefer", DATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("den Kiefern", DATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("die Kiefer", ACCUSATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("die Kiefern", ACCUSATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("die Kiefer", NOMINATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("die Kiefern", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("der Kiefer", GENITIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("der Kiefern", GENITIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("der Kiefer", DATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("den Kiefern", DATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("die Kiefer", ACCUSATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("die Kiefern", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); entry = page.getEntry(1); actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("Kiefer", null, SINGULAR, null, actualIter.next()); - assertWordFormNoun("Kiefer", null, PLURAL, null, actualIter.next()); + assertWordFormNoun("Kiefer", null, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("Kiefer", null, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } @@ -102,28 +102,28 @@ public void testStaat() throws Exception { IWiktionaryPage page = parse("Staat.txt"); IWiktionaryEntry entry = page.getEntry(0); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("der Staat", NOMINATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("die Staaten", NOMINATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("die Stäte", NOMINATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("die Staat", NOMINATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("die Staate", NOMINATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("des Staates", GENITIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("des Staats", GENITIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("der Staaten", GENITIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("der Stäte", GENITIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("der Staat", GENITIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("der Staate", GENITIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("dem Staate", DATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("dem Staat", DATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("den Staaten", DATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("den Stäten", DATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("den Staaten", DATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("den Staaten", DATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("den Staat", ACCUSATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("die Staaten", ACCUSATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("die Stäte", ACCUSATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("die Staat", ACCUSATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("die Staate", ACCUSATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("der Staat", NOMINATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("die Staaten", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("die Stäte", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("die Staat", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("die Staate", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("des Staates", GENITIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("des Staats", GENITIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("der Staaten", GENITIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("der Stäte", GENITIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("der Staat", GENITIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("der Staate", GENITIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("dem Staate", DATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("dem Staat", DATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("den Staaten", DATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("den Stäten", DATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("den Staaten", DATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("den Staaten", DATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("den Staat", ACCUSATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("die Staaten", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("die Stäte", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("die Staat", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("die Staate", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } @@ -132,14 +132,14 @@ public void testThulium() throws Exception { IWiktionaryPage page = parse("Thulium.txt"); IWiktionaryEntry entry = page.getEntry(0); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("das Thulium", NOMINATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun(null, NOMINATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("des Thuliums", GENITIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun(null, GENITIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("dem Thulium", DATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun(null, DATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("das Thulium", ACCUSATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun(null, ACCUSATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("das Thulium", NOMINATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun(null, NOMINATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("des Thuliums", GENITIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun(null, GENITIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("dem Thulium", DATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun(null, DATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("das Thulium", ACCUSATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun(null, ACCUSATIVE, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } @@ -148,14 +148,14 @@ public void testTier() throws Exception { IWiktionaryPage page = parse("Tier.txt"); IWiktionaryEntry entry = page.getEntry(0); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("das Tier", NOMINATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("die Tiere", NOMINATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("des Tier(e)s", GENITIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("der Tiere", GENITIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("dem Tier(e)", DATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("den Tieren", DATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("das Tier", ACCUSATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun("die Tiere", ACCUSATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("das Tier", NOMINATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("die Tiere", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("des Tier(e)s", GENITIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("der Tiere", GENITIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("dem Tier(e)", DATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("den Tieren", DATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("das Tier", ACCUSATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("die Tiere", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } @@ -164,14 +164,14 @@ public void testTun() throws Exception { IWiktionaryPage page = parse("Tun.txt"); IWiktionaryEntry entry = page.getEntry(1); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("das Tun", NOMINATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun(null, NOMINATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("des Tuns", GENITIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun(null, GENITIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("dem Tun", DATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun(null, DATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("das Tun", ACCUSATIVE, SINGULAR, null, actualIter.next()); - assertWordFormNoun(null, ACCUSATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("das Tun", NOMINATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun(null, NOMINATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("des Tuns", GENITIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun(null, GENITIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("dem Tun", DATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun(null, DATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("das Tun", ACCUSATIVE, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun(null, ACCUSATIVE, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } @@ -291,18 +291,18 @@ public void testGelb() throws Exception { IWiktionaryPage page = parse("Gelb.txt"); IWiktionaryEntry entry = page.getEntry(0); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("Gelb", NOMINATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Gelbs", NOMINATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Gelbtöne", NOMINATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Gelbs", GENITIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Gelbs", GENITIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Gelbtöne", GENITIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Gelb", DATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Gelbs", DATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Gelbtönen", DATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Gelb", ACCUSATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Gelbs", ACCUSATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Gelbtöne", ACCUSATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("Gelb", NOMINATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Gelbs", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Gelbtöne", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Gelbs", GENITIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Gelbs", GENITIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Gelbtöne", GENITIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Gelb", DATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Gelbs", DATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Gelbtönen", DATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Gelb", ACCUSATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Gelbs", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Gelbtöne", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } @@ -311,17 +311,17 @@ public void testMaerz() throws Exception { IWiktionaryPage page = parse("Maerz.txt"); IWiktionaryEntry entry = page.getEntry(0); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("März", NOMINATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Märze", NOMINATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("März", GENITIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Märzes", GENITIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Märzen", GENITIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Märze", GENITIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("März", DATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Märzen", DATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Märzen", DATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("März", ACCUSATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Märze", ACCUSATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("März", NOMINATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Märze", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("März", GENITIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Märzes", GENITIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Märzen", GENITIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Märze", GENITIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("März", DATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Märzen", DATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Märzen", DATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("März", ACCUSATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Märze", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } @@ -330,24 +330,24 @@ public void testMockumentary() throws Exception { IWiktionaryPage page = parse("Mockumentary.txt"); IWiktionaryEntry entry = page.getEntry(0); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("Mockumentary", NOMINATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Mockumentary", NOMINATIVE, SINGULAR, FEMININE, actualIter.next()); - assertWordFormNoun("Mockumentary", NOMINATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Mockumentarys", NOMINATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Mockumentary", GENITIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Mockumentary", GENITIVE, SINGULAR, FEMININE, actualIter.next()); - assertWordFormNoun("Mockumentarys", GENITIVE, SINGULAR, FEMININE, actualIter.next()); - assertWordFormNoun("Mockumentary", GENITIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Mockumentarys", GENITIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Mockumentarys", GENITIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Mockumentary", DATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Mockumentary", DATIVE, SINGULAR, FEMININE, actualIter.next()); - assertWordFormNoun("Mockumentary", DATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Mockumentarys", DATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Mockumentary", ACCUSATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Mockumentary", ACCUSATIVE, SINGULAR, FEMININE, actualIter.next()); - assertWordFormNoun("Mockumentary", ACCUSATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Mockumentarys", ACCUSATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("Mockumentary", NOMINATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Mockumentary", NOMINATIVE, SINGULAR, FEMININE, -1, actualIter.next()); + assertWordFormNoun("Mockumentary", NOMINATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Mockumentarys", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Mockumentary", GENITIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Mockumentary", GENITIVE, SINGULAR, FEMININE, -1, actualIter.next()); + assertWordFormNoun("Mockumentarys", GENITIVE, SINGULAR, FEMININE, -1, actualIter.next()); + assertWordFormNoun("Mockumentary", GENITIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Mockumentarys", GENITIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Mockumentarys", GENITIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Mockumentary", DATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Mockumentary", DATIVE, SINGULAR, FEMININE, -1, actualIter.next()); + assertWordFormNoun("Mockumentary", DATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Mockumentarys", DATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Mockumentary", ACCUSATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Mockumentary", ACCUSATIVE, SINGULAR, FEMININE, -1, actualIter.next()); + assertWordFormNoun("Mockumentary", ACCUSATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Mockumentarys", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } @@ -357,23 +357,23 @@ public void testKeks() throws Exception { IWiktionaryPage page = parse("Keks.txt"); IWiktionaryEntry entry = page.getEntry(0); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("Keks", NOMINATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Keks", NOMINATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Kekse", NOMINATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("Keks", NOMINATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Keks", NOMINATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Kekse", NOMINATIVE, PLURAL, null, -1, actualIter.next()); - assertWordFormNoun("Kekses", GENITIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Kekses", GENITIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Kekse", GENITIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("Kekses", GENITIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Kekses", GENITIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Kekse", GENITIVE, PLURAL, null, -1, actualIter.next()); - assertWordFormNoun("Keks", DATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Kekse", DATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Keks", DATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Kekse", DATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Keksen", DATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("Keks", DATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Kekse", DATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Keks", DATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Kekse", DATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Keksen", DATIVE, PLURAL, null, -1, actualIter.next()); - assertWordFormNoun("Keks", ACCUSATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Keks", ACCUSATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Kekse", ACCUSATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("Keks", ACCUSATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Keks", ACCUSATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Kekse", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } @@ -383,18 +383,18 @@ public void testFreischurf() throws Exception { IWiktionaryPage page = parse("Freischurf.txt"); IWiktionaryEntry entry = page.getEntry(0); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("Freischurf", NOMINATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Freischürfe", NOMINATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("Freischurf", NOMINATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Freischürfe", NOMINATIVE, PLURAL, null, -1, actualIter.next()); - assertWordFormNoun("Freischurfes", GENITIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Freischurfs", GENITIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Freischürfe", GENITIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("Freischurfes", GENITIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Freischurfs", GENITIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Freischürfe", GENITIVE, PLURAL, null, -1, actualIter.next()); - assertWordFormNoun("Freischurf", DATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Freischürfen", DATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("Freischurf", DATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Freischürfen", DATIVE, PLURAL, null, -1, actualIter.next()); - assertWordFormNoun("Freischurf", ACCUSATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Freischürfe", ACCUSATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("Freischurf", ACCUSATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Freischürfe", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } @@ -404,23 +404,23 @@ public void testFels() throws Exception { IWiktionaryPage page = parse("Fels.txt"); IWiktionaryEntry entry = page.getEntry(0); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("Fels", NOMINATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Fels", NOMINATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Felsen", NOMINATIVE, PLURAL, null, actualIter.next()); - - assertWordFormNoun("Fels", GENITIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Felses", GENITIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Felsens", GENITIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Felsen", GENITIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Felsen", GENITIVE, PLURAL, null, actualIter.next()); - - assertWordFormNoun("Fels", DATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Felsen", DATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Felsen", DATIVE, PLURAL, null, actualIter.next()); - - assertWordFormNoun("Fels", ACCUSATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Felsen", ACCUSATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Felsen", ACCUSATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("Fels", NOMINATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Fels", NOMINATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Felsen", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + + assertWordFormNoun("Fels", GENITIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Felses", GENITIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Felsens", GENITIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Felsen", GENITIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Felsen", GENITIVE, PLURAL, null, -1, actualIter.next()); + + assertWordFormNoun("Fels", DATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Felsen", DATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Felsen", DATIVE, PLURAL, null, -1, actualIter.next()); + + assertWordFormNoun("Fels", ACCUSATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Felsen", ACCUSATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Felsen", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } @@ -429,23 +429,23 @@ public void testUnschlitt() throws Exception { IWiktionaryPage page = parse("Unschlitt.txt"); IWiktionaryEntry entry = page.getEntry(0); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("Unschlitt", NOMINATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Unschlitt", NOMINATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Unschlitte", NOMINATIVE, PLURAL, null, actualIter.next()); - - assertWordFormNoun("Unschlitts", GENITIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Unschlittes", GENITIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Unschlitts", GENITIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Unschlittes", GENITIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Unschlitte", GENITIVE, PLURAL, null, actualIter.next()); - - assertWordFormNoun("Unschlitt", DATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Unschlitt", DATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Unschlitten", DATIVE, PLURAL, null, actualIter.next()); - - assertWordFormNoun("Unschlitt", ACCUSATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Unschlitt", ACCUSATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Unschlitte", ACCUSATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("Unschlitt", NOMINATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Unschlitt", NOMINATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Unschlitte", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + + assertWordFormNoun("Unschlitts", GENITIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Unschlittes", GENITIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Unschlitts", GENITIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Unschlittes", GENITIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Unschlitte", GENITIVE, PLURAL, null, -1, actualIter.next()); + + assertWordFormNoun("Unschlitt", DATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Unschlitt", DATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Unschlitten", DATIVE, PLURAL, null, -1, actualIter.next()); + + assertWordFormNoun("Unschlitt", ACCUSATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Unschlitt", ACCUSATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Unschlitte", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } @@ -454,8 +454,8 @@ public void testFote() throws Exception { IWiktionaryPage page = parse("Fote.txt"); IWiktionaryEntry entry = page.getEntry(0); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("de Fote", null, SINGULAR, null, actualIter.next()); - assertWordFormNoun("de Foten", null, PLURAL, null, actualIter.next()); + assertWordFormNoun("de Fote", null, SINGULAR, null, -1, actualIter.next()); + assertWordFormNoun("de Foten", null, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } @@ -464,22 +464,22 @@ public void testGeneraladmiral() throws Exception { IWiktionaryPage page = parse("Generaladmiral.txt"); IWiktionaryEntry entry = page.getEntry(0); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("Generaladmiral", NOMINATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Generaladmirale", NOMINATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Generaladmiräle", NOMINATIVE, PLURAL, null, actualIter.next()); - - assertWordFormNoun("Generaladmirals", GENITIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Generaladmirale", GENITIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Generaladmiräle", GENITIVE, PLURAL, null, actualIter.next()); - - assertWordFormNoun("Generaladmiral", DATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Generaladmirale", DATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Generaladmiralen", DATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Generaladmirälen", DATIVE, PLURAL, null, actualIter.next()); - - assertWordFormNoun("Generaladmiral", ACCUSATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Generaladmirale", ACCUSATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Generaladmiräle", ACCUSATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("Generaladmiral", NOMINATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Generaladmirale", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Generaladmiräle", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + + assertWordFormNoun("Generaladmirals", GENITIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Generaladmirale", GENITIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Generaladmiräle", GENITIVE, PLURAL, null, -1, actualIter.next()); + + assertWordFormNoun("Generaladmiral", DATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Generaladmirale", DATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Generaladmiralen", DATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Generaladmirälen", DATIVE, PLURAL, null, -1, actualIter.next()); + + assertWordFormNoun("Generaladmiral", ACCUSATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Generaladmirale", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Generaladmiräle", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } @@ -488,42 +488,43 @@ public void testGams() throws Exception { IWiktionaryPage page = parse("Gams.txt"); IWiktionaryEntry entry = page.getEntry(0); Iterator actualIter = entry.getWordForms().iterator(); - assertWordFormNoun("Gams", NOMINATIVE, SINGULAR, FEMININE, actualIter.next()); - assertWordFormNoun("Gams", NOMINATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Gams", NOMINATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Gams", GENITIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Gams", GENITIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Gamsen", GENITIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Gamsen", DATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Gamsen", ACCUSATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Gamsen", GENITIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Gamsen", DATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Gamsen", ACCUSATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Gams", DATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Gams", DATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Gams", ACCUSATIVE, SINGULAR, NEUTER, actualIter.next()); - assertWordFormNoun("Gams", ACCUSATIVE, SINGULAR, MASCULINE, actualIter.next()); - assertWordFormNoun("Gams", NOMINATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Gamsen", NOMINATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Gams", GENITIVE, SINGULAR, FEMININE, actualIter.next()); - assertWordFormNoun("Gams", GENITIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Gamsen", GENITIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Gams", DATIVE, SINGULAR, FEMININE, actualIter.next()); - assertWordFormNoun("Gams", DATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Gamsen", DATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Gams", ACCUSATIVE, SINGULAR, FEMININE, actualIter.next()); - assertWordFormNoun("Gams", ACCUSATIVE, PLURAL, null, actualIter.next()); - assertWordFormNoun("Gamsen", ACCUSATIVE, PLURAL, null, actualIter.next()); + assertWordFormNoun("Gams", NOMINATIVE, SINGULAR, FEMININE, -1, actualIter.next()); + assertWordFormNoun("Gams", NOMINATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Gams", NOMINATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Gams", GENITIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Gams", GENITIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Gamsen", GENITIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Gamsen", DATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Gamsen", ACCUSATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Gamsen", GENITIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Gamsen", DATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Gamsen", ACCUSATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Gams", DATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Gams", DATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Gams", ACCUSATIVE, SINGULAR, NEUTER, -1, actualIter.next()); + assertWordFormNoun("Gams", ACCUSATIVE, SINGULAR, MASCULINE, -1, actualIter.next()); + assertWordFormNoun("Gams", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Gamsen", NOMINATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Gams", GENITIVE, SINGULAR, FEMININE, -1, actualIter.next()); + assertWordFormNoun("Gams", GENITIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Gamsen", GENITIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Gams", DATIVE, SINGULAR, FEMININE, -1, actualIter.next()); + assertWordFormNoun("Gams", DATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Gamsen", DATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Gams", ACCUSATIVE, SINGULAR, FEMININE, -1, actualIter.next()); + assertWordFormNoun("Gams", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); + assertWordFormNoun("Gamsen", ACCUSATIVE, PLURAL, null, -1, actualIter.next()); assertFalse(actualIter.hasNext()); } protected void assertWordFormNoun(final String expectedForm, final GrammaticalCase expectedCase, final GrammaticalNumber expectedNumber, GrammaticalGender expectedGender, - final IWiktionaryWordForm actual) { + int expectedInflectionGroup, final IWiktionaryWordForm actual) { assertEquals(expectedForm, actual.getWordForm()); assertEquals(expectedCase, actual.getCase()); assertEquals(expectedNumber, actual.getNumber()); assertEquals(expectedGender, actual.getGender()); + assertEquals(expectedInflectionGroup, actual.getInflectionGroup()); } protected void assertWordFormVerb(final String expectedForm, final GrammaticalPerson expectedPerson,