Remove requirement for lexemes to have a phoneme.
Add check to see if phoneme exists before attempting to use it.
Remove redundant alias checks.
One thing I couldn't solve was preventing UK Amazon Polly voices from saying "nine inch nails" in place of "nin" because if I replaced "nin" with a "ninja" alias, then words like "nintendo" would be replaced with "ninjatendo". Hilarious, but no thank you. I'll just keep only one grapheme for the "ninja" alias, the all caps one "NIN". I should find out if I can just send Amazon some feedback about my complaints instead of trying to shoehorn this project to workaround it.
Remove requirement for lexemes to have a phoneme. Add check to see if phoneme exists before attempting to use it. Remove redundant alias checks.
One thing I couldn't solve was preventing UK Amazon Polly voices from saying "nine inch nails" in place of "nin" because if I replaced "nin" with a "ninja" alias, then words like "nintendo" would be replaced with "ninjatendo". Hilarious, but no thank you. I'll just keep only one grapheme for the "ninja" alias, the all caps one "NIN". I should find out if I can just send Amazon some feedback about my complaints instead of trying to shoehorn this project to workaround it.