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

Support named conditional rules in dictionary files #286

Open
rhdunn opened this issue Jul 1, 2017 · 0 comments
Open

Support named conditional rules in dictionary files #286

rhdunn opened this issue Jul 1, 2017 · 0 comments
Labels

Comments

@rhdunn
Copy link
Member

rhdunn commented Jul 1, 2017

The aim of this feature is to:

  1. make the conditional rules easier to read;
  2. allow the conditional rules to be more generic;
  3. support more than the 9 conditional rules allowed by espeak (?1-?9).

Use Case 1: Accent Specific Rules

en_list dictionary file:

vase  v'A:z
vase  v'eIz  ?en-US

en-US language file:

rule en-US

Use Case 2: Accent Splits and Mergers

en_rules dictionary file:

ir  3:  ?bird-nurse # e.g. bird

en-GB language file:

rule bird-nurse term-nurse # FIR-FUR-FERN merger

In this example, the NURSE vowel (FIR-FUR-FERN merger) is treated as the special case. Without that, it will default to the rules for i and r, resulting in the correct pronunciation in Scottish English, etc..

Use Case 3: Yod

There are 4 types of yod (/j/) behaviour:

diphthong -- preserve archaic /Iu:/ clusters like 'yew' found in Welsh English, etc.
elision -- elide the diphthong (e.g. /nu/ for 'new' in American English).
coalescence -- /sj/ => /S/, /zj/ => /Z/, /dj/ => /dZ/ and /tj/ => /tS/ found in many varieties of English
preserving -- RP tends to preserve the yod sound in non-archaic clusters

These can occur in different environments in different accents. It should be possible to specify these behaviours in the pronunciation rules, then specify which behaviours apply in the language files.

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

No branches or pull requests

1 participant