View source: R/SharedCognateDistance.R
This calculates a distance based on the amount of shared cognates. Two languages share a cognate for a word if they have at least one cognate code in common for that word (e.g. if language 1 has for the concept cognate "1, 2" and language 2 has "1, 3", they share a cognate). The distance is then the proportion of concepts, where these two languages do not share a cognate.
| 1 | pairwiseSCDistance(lang1, lang2, alignment)
 | 
| lang1 | row index of the first language in the alignment | 
| lang2 | row index of the second language in the alignment | 
| alignment | alignment matrix as created by createAlignmentMatrix() | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.