Skip to content

Commit

Permalink
More adjective rules
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains committed Oct 7, 2023
1 parent d4f63cd commit 552c11d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion commonItems.UnitTests/Linguistics/StringExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ public class StringExtensionsTests {
[InlineData("Nanaimo", "Nanaimoite")]
[InlineData("Envigado", "Envigadeño")]
[InlineData("Chigorodó", "Chigorodoseño")]
[InlineData("San Bernardo", "San Bernardino")]
[InlineData("Encantado", "Encantense")]
[InlineData("Lincoln", "Lincolnite")]

// adjectives relying on rewrite rules
[InlineData("Armenia Maioris", "Greater Armenian")]
Expand Down Expand Up @@ -485,7 +488,7 @@ public void AdjectiveRuleExistsForEveryCountryAndMajorCityInTheWorld() {
var csv = new WebClient().DownloadString(csvUrl);

Check warning on line 488 in commonItems.UnitTests/Linguistics/StringExtensionsTests.cs

View workflow job for this annotation

GitHub Actions / test_and_check_coverage

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 488 in commonItems.UnitTests/Linguistics/StringExtensionsTests.cs

View workflow job for this annotation

GitHub Actions / test (self-hosted, windows)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 488 in commonItems.UnitTests/Linguistics/StringExtensionsTests.cs

View workflow job for this annotation

GitHub Actions / test (macos-latest)

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)
var cities = CsvReader.ReadFromText(csv)
.Select(line => line[0])
.Where(city => !string.IsNullOrEmpty(city))
.Where(city => !string.IsNullOrEmpty(city) && !city.StartsWith("Zürich (Kreis"))
.Distinct()
.ToList();

Expand Down
3 changes: 3 additions & 0 deletions commonItems/Linguistics/adjective_rules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
{"*anon", "*anese"}, // Lebanon
{"*anya", "*anyan"}, // Netanya
{"*aras", "*arentine"}, // Taras
{"*ardo", "*ardino"}, // San Bernardo
{"*aros", "*arian"}, // Paros
{"*atar", "*atari"}, // Qatar
{"*atte", "*atian"}, // Ville Platte
Expand Down Expand Up @@ -342,6 +343,7 @@
{"*[c]cis", "*[c]cidian"}, // Chalcis
{"*[c]nai", "*[c]naite"}, // Chennai
{"*[v]ris", "*[v]risian"}, // Marmaris
{"*[v]ado", "*[v]ense"}, // Encantado
{"*[c]ver", "*[c]ver"}, // Denver
{"*[v]ver", "*[v]verian"}, // Hanover

Expand Down Expand Up @@ -585,6 +587,7 @@
{"*ku", "*kuvian"}, // Baku
{"*ld", "*ldian"}, // Chesterfield
{"*ll", "*llese"}, // Marshall
{"*ln", "*lnite"}, // https://en.wikipedia.org/wiki/Lincoln,_Nebraska
{"*lo", "*lonian"}, // Buffalo
{"*lu", "*lan"}, // Honolulu
{"*me", "*man"}, // Rome
Expand Down

0 comments on commit 552c11d

Please sign in to comment.