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

Improve the tokenizer to disambiguate between RE specials and specials used as letters #192

Open
joanise opened this issue Oct 4, 2022 · 0 comments

Comments

@joanise
Copy link
Collaborator

joanise commented Oct 4, 2022

PR #190 patches one narrow problem of the tokenizer, making it handle alternations correctly when tokenizing, but it's not general. For example, ^ should be stripped from rules, unless it's a letter in the language (see #190 (comment)).

A better solution would probably be to use a character inventory for the language that enumerates all characters that are not considered letters according to the Unicode standard, but that are actually used as letters in the language, instead of paring the input field for each g2p rule.

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

1 participant