Create new word from given information
Create new word from given information
Surface string
Sequence of morphemes
A new word
Builder factory for any word
Builder factory for any word
Builder factory
Extract surface form and morphemes for case-matching.
Extract surface form and morphemes for case-matching.
A Word to be matched
Some(Surface form, morpheme list)
"Extractor" is for pattern matching. That is, a word w
can be matched as:
w match { case Word(surface, morpheme1, morpheme2, _*) => ... }or can be matched as:
w match { case Word(surface, morphemes @ _*) => ... }
Companion object for Word