0
val lexicon: Lexicon = Lexicon.getDefaultLexicon()
val realised: Realiser = Realiser(lexicon)
val word: WordElement = lexicon.getWord("I", LexicalCategory.PRONOUN)
val inflected = InflectedWordElement(word)
inflected.setFeature(Feature.PERSON, Person.THIRD)
inflected.setFeature(Feature.NUMBER, NumberAgreement.PLURAL)
realised.realise(inflected).realisation

I want to get "they" but I get "them". I tried to find some feature "SUBJECT" or "OBJECT" but I found only "POSSESIVE" and "REFLEXIVE". How can I clarify my condition for according only subject pronoun?

Sujal Kumar
  • 1,054
  • 10
  • 23
Kokoro
  • 3
  • 4

1 Answers1

0
inflected.setFeature(
    InternalFeature.DISCOURSE_FUNCTION,
    DiscourseFunction.SUBJECT
)

This string before last one resolves my problem. Unfortunately, the documentation doesn't include it.

Tyler2P
  • 2,324
  • 26
  • 22
  • 31
Kokoro
  • 3
  • 4