LingPy

This documentation is for version 2.0.dev, which is not released yet.

lingpy.align.sca.Alignments.get_etymdict

Alignments.get_etymdict(ref='cogid', entry='', loans=False)

Return an etymological dictionary representation of the word list.

Parameters :

ref : string (default = “cogid”)

The reference entry which is used to store the cognate ids.

entry : string (default = ‘’)

The entry-type which shall be selected.

Returns :

etym_dict : dict

An etymological dictionary representation of the data.

Notes

In contrast to the word-list representation of the data, an etymological dictionary representation sorts the counterparts according to the cognate sets of which they are reflexes.