is.glottolog: Are these languages in glottolog?

View source: R/is.glottolog.R

is.glottologR Documentation

Are these languages in glottolog?

Description

Takes any vector of languages or ISO codes and returns a logical vector.

Usage

is.glottolog(x, response = FALSE)

Arguments

x

A character vector of languages (can be written in lower case)or ISO codes

response

logical. If TRUE, when language is absent, return warnings with a possible candidates.

Author(s)

George Moroz <agricolamz@gmail.com>

Examples

is.glottolog(c('Adyghe', 'Russian'))
is.glottolog('Buyaka')

## Not run: 
# Add warning message with sugestions
is.glottolog(c('Adygey', 'Russian'), response = TRUE)
# > FALSE TRUE
# Warning message:
# In is.glottolog(c('Adyge', 'Russian'), response = TRUE) :
# Language Adyge is absent in our version of the Glottolog database. Did you mean Aduge, Adyghe?

## End(Not run)

lingtypology documentation built on Aug. 23, 2023, 5:09 p.m.