parseCognates: Parse cognates out of an item

Description Usage Arguments Value

View source: R/Alignment.R

Description

Parse cognates out of an item

Usage

1
2
3
parseCognates(language, wordID, removeLoans = TRUE,
  UncertaintyAsUniques = FALSE, removeUncertainties = FALSE,
  missingsAsUniques = TRUE)

Arguments

language

The id of the language

wordID

The id of the word (1-210)

removeLoans

if TRUE, returns an empty numeric(0), if the lexeme is known to be loaned

UncertaintyAsUniques

if TRUE, every ? in the cognate will be treated as unique column

removeUncertainties

if TRUE, returns an empty numeric(0), if the cognate assignment has a ?

missingsAsUniques

if TRUE, every empty cognate will be treated as unique column. If FALSE, an empty cognate-field will be treated as missing data.

Value

returns a numeric vector of cognate classes for the given wordID and languageID. Returns -1, if the lexeme requires a unique column. Returns numeric(0), if data is missing.


KonstantinHoffmann/ABVDTools documentation built on Dec. 14, 2021, 11:48 a.m.