public void TestLastIGContainsPossessive() { Assert.False(parse1.LastIGContainsPossessive()); Assert.False(parse2.LastIGContainsPossessive()); Assert.False(parse3.LastIGContainsPossessive()); Assert.False(parse4.LastIGContainsPossessive()); Assert.True(parse5.LastIGContainsPossessive()); Assert.False(parse6.LastIGContainsPossessive()); Assert.True(parse7.LastIGContainsPossessive()); }
/** * <summary>Binary attribute for a given word. If the last inflectional group of the word contains POSSESSIVE tag, * the attribute will be "true", otherwise "false".</summary> * <param name="parse">Morphological parse of the word.</param> */ public LastIGContainsPossessiveAttribute(MorphologicalParse parse) : base(parse.LastIGContainsPossessive()) { }