lexibank / pylexibank

The python curation library for lexibank
Apache License 2.0
18 stars 7 forks source link

Allow consonant clusters to check tildes #279

Closed FredericBlum closed 3 weeks ago

FredericBlum commented 4 months ago

In some datasets (e.g. blumpanotacana), we use for nasalization that is a reflex of nasal consonants of other languages. However, this throws an index error for the consonant check. This can easily be fixed, however, if we change one line in the consonant_clusters.py.

Old: https://github.com/lexibank/pylexibank/blob/58a2670693d996e5f3638d424ecfa14bbf6d571f/src/pylexibank/commands/consonant_clusters.py#L31

New:

out = [[]] if sound_names[0].split(" ")[-1] in ["consonant", "cluster", "∼"] else []

xrotwang commented 4 months ago

Fine with me. @LinguList thoughts?