Skip to content

Commit

Permalink
Merge pull request #76 from hmlendea/normalisation
Browse files Browse the repository at this point in the history
Fixed normalisation of `ⁿ`
  • Loading branch information
hmlendea authored Jun 20, 2024
2 parents 5f1f6cc + 1b4ff55 commit aae401e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MoreCulturalNamesBuilder/Service/NameNormaliser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ private string ApplyCommonReplacements(string name)
processedName = Regex.Replace(processedName, "([ɬƚ])", "ł");
processedName = Regex.Replace(processedName, "([ṁ]|m̄|m̐|m̃)", "m");
processedName = Regex.Replace(processedName, "(nj)", "nj");
processedName = Regex.Replace(processedName, "(ⁿ)", "n"); // Superscript n - nasal sound
processedName = Regex.Replace(processedName, "([нṉ]|n‌)", "n");
processedName = Regex.Replace(processedName, "(ṉ)", "ņ");
processedName = Regex.Replace(processedName, "[ƞ]", "ŋ");
Expand Down Expand Up @@ -885,7 +886,7 @@ private string ApplyCommonReplacements(string name)
processedName = Regex.Replace(processedName, "[ʾʻʼʽʹ′]", "´");
processedName = Regex.Replace(processedName, "[ʿ]", "`");
processedName = Regex.Replace(processedName, "[ꞌʿʲь]", "'");
processedName = Regex.Replace(processedName, "[ʺ″]", "\"");
processedName = Regex.Replace(processedName, "[ʺ″]", "\"");
processedName = Regex.Replace(processedName, "[‌‍]", "");
processedName = Regex.Replace(processedName, "[–—]", "-");
processedName = Regex.Replace(processedName, "[‎·]", "");
Expand Down

0 comments on commit aae401e

Please sign in to comment.