Beispiel #1
0
 /// <summary>This constructor is using during parsing.</summary>
 public WordElementBuilder(lexicalCategory category, ParseToken token) : base(token)
 {
     Word.PartOfSpeech = category;
     WordSource        = new SingleWordSource(category switch
     {
         //lexicalCategory.NOUN => token.Lemma,
         lexicalCategory.VERB => token.Lemma,
         _ => token.Word
     });
Beispiel #2
0
 public CompoundBuilder(lexicalCategory category)
 {
     Compound.PartOfSpeech = category;
 }