lingpy / linse

A Python library for the manipulation of linguistic sequences.
Apache License 2.0
2 stars 1 forks source link

syllable structure analysis and rudimentary class model for Words and Syllables #16

Closed LinguList closed 11 months ago

LinguList commented 4 years ago

I just read a bit about phonological theories on onsets in different languages. For lexibank and in general, we might want to have a simplified analysis of a syllable structure. The key would probably be to use the prosody output, but to couple it with a simpler information on consonant and vowels and to create a branching representation:

It might be useful to make a Syllable class for this purpose, that is instantiated by a string, which should be a syllable (not a word).

Even a word class would be very useful, at least I realized this in experiments on lingpy3 and new models there.

The classes are in fact lightweight (syllables aren't, the word yes): the word provides the list-of-list representation and a normal sequences representation, depending on what comparison is done (full cognates or partial cognates).

The additional syllable model would allow us to pull out CV patterns, i.e., prosodic information, from wordlists, and this in a consistent manner, that was so far just done by some piece of code I wrote on the fly.

LinguList commented 4 years ago

We can also place this in lingpy, of course. But so far, it seems this won't get too complex.