DECOMPOSE: Decompose words into morphemes

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Decomposes words into morphemes on the basis of the lexical entries in the lexicon. If multiple decompositions are possible, all are returned.

Usage

1
DECOMPOSE(hearerID, form)

Arguments

hearerID

Pointer to hearer agent

form

Word form that is considered for decomposition

Details

Decomposition is not trivial: Because of sloppy pronunciation (PRODUCE) and differences between speakers, mental representations of morphemes need not match one-to-one the parts of an utterance. Zero morphemes are not allowed. Reduced forms may become suffixes too. Suffixes must be minimally erosionMax long (should be automatically satisfied...). Function applies recursively (max twice)

Value

A vector with morphologically analyzed words, in which morpheme-s are separate-d by hyphen-s ("-")

Author(s)

Sander Lestrade

See Also

ANALYZE

Examples

1
2
3
4
5
6
7
8
9
FOUND()
old=world$suffixThreshold
situation=SITUATION(1)
proposition=PROPOSITION(1, situation)
(utterance=PRODUCE(1, proposition))
(utterance=gsub(' ', '', utterance))
world$suffixThreshold=20
DECOMPOSE(2, utterance)
world$suffixThreshold=old

Example output

[1] "lasegygibu buwirawa"
[1] "lasegygibubuwirawa"
logical(0)

MoLE documentation built on May 2, 2019, 3:02 p.m.