pub enum HeadRule {
FunctionWordsApart,
LastWords,
}Expand description
How Schema::positions finds the head word and the function word of
a bunsetsu: the two forms findHead of CaboCha has.
Variants§
FunctionWordsApart
A morpheme that matches one of Schema::function_words is the
function word, and is not the head; a morpheme that matches none of
them, none of Schema::not_heads, and is not a symbol is the
head. The last of each is taken, and a head after the function word
becomes the function word too. The rule of the schemas of this
crate, and CaboCha’s for IPA and for UniDic.
LastWords
The function word is the last morpheme that is not a symbol, and the
head the last morpheme that is neither a symbol nor one of
Schema::not_heads. The two are found apart: one morpheme can be
both, as the noun of a bunsetsu of one noun, and nothing is moved
afterwards. Schema::function_words is not read. CaboCha’s rule
for JUMAN, whose function word is the last morpheme that is not a
特殊, and whose head is the last that is not a 特殊, a 助詞 or a
接尾辞.