Exemple #1
0
        public void xmlLexiconLookupWord_plurals()
        {
            this.lexicon = new XMLLexicon();
            var w1 = lexicon.lookupWord("man", new LexicalCategory_NOUN());
            var w2 = w1.getFeature(LexicalFeature.PLURAL.ToString());

            w2.ShouldBeEquivalentTo("men");
        }
Exemple #2
0
        public void xmlLexiconLookupWord()
        {
            this.lexicon = new XMLLexicon();
            var w  = lexicon.lookupWord("man", new LexicalCategory_NOUN());
            var id = w.getId();

            Assert.IsNotNull(id);
            Assert.IsNotEmpty(id);
            id.ShouldBeEquivalentTo("E0038767");
        }