Skip to content

Include all indexes in phonological groups when there is more than one metaplasm #128

@omare13

Description

@omare13

When having metaplasms for consecutive grammatical syllables, there is no information in the metrical syllable to know which ones have been applied.

EXAMPLE:
line: "de oír de..."
gram_syll: "de|o|ir|de|..."
met_syll: "deoir|de|..."

CURRENT RANTANPLAN OUTPUT FOR gram_syll:
[
{
'content': 'de',
'has_synalepha': True,
},
{
'content': 'o',
'has_synalepha': False,
'has_sinaeresis': True,
'is_stressed': False
},
{
'content': 'ír',
'has_synalepha': False,
'has_sinaeresis': False,
},
{
'content': 'de',
's_number': 3,
'has_synalepha': False,
'has_sinaeresis': False,
}

CURRENT RANTANPLAN OUTPUT FOR met_syll:
[
{
'syllable': 'deoír',
'is_stressed': True,
'synalepha_index': [1],
'is_word_end': True
},
{
'syllable': 'de',
'is_stressed': False,
'is_word_end': True
},

EXPECTED RANTANPLAN OUTPUT FOR met_syll:
{
'syllable': 'deoír',
'is_stressed': True,
'synalepha_index': [1],
'sinaeresis_index':[2],
'is_word_end': True
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions