Learn R Programming

MoLE (version 1.0.1)

FMATCH: Compare forms

Description

Determine match between a given (perceived) form and a list of forms (i.e., the mental representations).

Usage

FMATCH(target, lexicon)

Arguments

target

The form whose matching lexeme is to be identified

lexicon

The lexicon in which a match is sought.

Value

vector of matching scores rescaled to 1-0 range.

Details

Characters are matched one by one from left to right. Mismatches are weighted according to onset priority: mismatches in the beginning of a word are more important than later ones.

See Also

ANALYZE

Examples

Run this code
# NOT RUN {
FOUND()
(lexicon=head(population[[1]]$nouns))
target=lexicon$form[1]
FMATCH(target, lexicon)
# }

Run the code above in your browser using DataLab