similarity: Calculate phonological similarity of two string vectors,...

Description Usage Arguments Value Examples

View source: R/func.R

Description

Calculate phonological similarity of two string vectors, element-by-element.

Usage

1
similarity(x, y)

Arguments

x

A character vector.

y

A character vector.

Value

A vector for the element-wise phonological similarity between x and y.

Examples

1
similarity(c('dianhua', 'gandong'), c('denwa', 'kando'))

rongmu/phonosim documentation built on May 27, 2019, 1:50 p.m.