Fix 874 entries: N before velar K/G should be NG#52
Open
ptarjan wants to merge 1 commit intocmusphinx:masterfrom
Open
Fix 874 entries: N before velar K/G should be NG#52ptarjan wants to merge 1 commit intocmusphinx:masterfrom
ptarjan wants to merge 1 commit intocmusphinx:masterfrom
Conversation
In English, /n/ always assimilates to the velar nasal [ŋ] before /k/ or /g/. The CMU dictionary already uses NG correctly for most entries (e.g., THINK → TH IH1 NG K), but 874 entries still had plain N before K or G. Examples of corrections: - BANK: B AE1 N K → B AE1 NG K - ANCHOR: already correct (AE1 NG K ER0) - ANGLOPHILE: AE1 N G L → AE1 NG G L - ANCHETA: AA0 N K → AA0 NG K This is a systematic phonological rule with no exceptions in English — the N phoneme cannot occur before velar consonants without assimilating. See Ladefoged & Johnson (2014) "A Course in Phonetics" for reference. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
According to the official CMUDICT home page, the GitHub source for the CMUDICT file should be at https://github.com/Alexir/CMUdict -- are these (very good and much appreciated) changes being submitted there? Please see #53 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
In English, /n/ always assimilates to the velar nasal [ŋ] before /k/ or /g/. The CMU dictionary already uses
NGcorrectly for most entries (e.g.,THINK → TH IH1 NG K), but 874 entries still had plainNbeforeKorG.This is a systematic phonological rule with no exceptions in English — the
Nphoneme cannot surface before velar consonants without assimilating.Examples
Note that many entries were already correct (e.g.,
ANCHOR → AE1 NG K ER0,THINK → TH IH1 NG K). This PR fixes the remaining inconsistencies.Methodology
Scanned all entries for sequences where the
Nphoneme is immediately followed byKorG, and replacedNwithNGin those positions. The change is purely mechanical — no judgment calls required, since velar nasal assimilation before velar stops is exceptionless in English.Reference
Ladefoged & Johnson (2014), A Course in Phonetics: /n/ assimilates to [ŋ] before velar consonants /k, g/ in all English dialects.
🤖 Generated with Claude Code