Fix 874 entries: N before velar K/G should be NG#11
Open
ptarjan wants to merge 1 commit into
Open
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Duplicate of cmusphinx/cmudict#52 — submitted here per discussion in cmusphinx/cmudict#53 about which repo is canonical.
Summary
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.
This is a systematic phonological rule with no exceptions in English — the N phoneme 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 N phoneme is immediately followed by K or G, and replaced N with NG in 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.