Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flag baby :v: language tags as errors if they appear on adult language tiers #2

Open
vicchuayh opened this issue May 31, 2022 · 2 comments

Comments

@vicchuayh
Copy link
Collaborator

Currently, if baby language tags (:v:vocalizations,:v:laughter, :v:airstream, :v:crying) appear on adult language tiers, it is not flagged as an error.

Proposed implementation in Python:

def _find_baby_lang_adult(belan):
    for p in belan.persons:
        if 'Baby' not in p.name:
            if 'Sibling' not in p.name:
                for u in p.utterances:
                    for c in u.chunks:
                        if c.language.startswith(':v:'):
                            errors.append(f"{belan.path} : {c} tagged as {c.language} found on {p.name} (Language) tier (should be reserved for Baby (Language) only)")
@letuananh
Copy link
Owner

I see that you want to reserve :v:laughter for babies only, how about when a parent laugh?

@vicchuayh
Copy link
Collaborator Author

According to BELA-con, :v:laughter should appear on Baby (Language) tiers but not on Baby (Utterance) tiers. It's the opposite for adult tiers (i.e., can appear on Adult (Utterance) but not Adult (Language)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants