Word constructor

Word(
  1. String read,
  2. String pronunciation,
  3. Grammar grammar,
  4. String basic,
  5. Pos partOfSpeech,
  6. String nodeStr,
  7. TokenNode token,
)

Implementation

Word(
  String read,
  String pronunciation,
  Grammar grammar,
  // String readingScript,
  // String transcriptionScript,
  String basic,
  Pos partOfSpeech,
  String nodeStr,
  TokenNode token,
) {
  this.reading = read;
  this.transcription = pronunciation;
  this.grammar = grammar;
  //this.readingScript = readingScript;
  //this.transcriptionScript = transcriptionScript;
  this.lemma = basic;
  this.partOfSpeech = partOfSpeech;
  this.word = nodeStr;
  tokens.add(token);
}