Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
chore: place names from `matcher.rs` to `proper_noun_rules.json`
hippietrail012adf94ade8
diff --git a/harper-core/proper_noun_rules.json b/harper-core/proper_noun_rules.jsonindex 7d2f9da1a..702ad5695 100644--- a/harper-core/proper_noun_rules.json+++ b/harper-core/proper_noun_rules.json@@ -116,40 +116,43 @@},"NationalCapitals": {"canonical": [- "Belize City",- "Guatemala City",- "Kuwait City",- "Mexico City",- "Panama City",- "Vatican City",- "Ho Chi Minh City",- "Saint Kitts and Nevis",- "Saint Pierre and Miquelon",- "Saint Vincent and the Grenadines",- "San José",- "San Juan",- "San Marino",- "San Salvador",- "Cape Town",- "George Town","Abu Dhabi","Addis Ababa",+ "Andorra la Vella","Bandar Seri Begawan",+ "Belize City","Buenos Aires",+ "Cape Town",+ "Dar es Salaam","Diego Garcia",+ "George Town",+ "Guatemala City",+ "Ho Chi Minh City",+ "Kuwait City","La Paz",+ "Mexico City","New Delhi","Pago Pago",+ "Panama City","Phnom Penh",+ "Port-au-Prince","Port Louis","Port Moresby",- "Port Vila","Port of Spain",+ "Port Vila","Porto-Novo",+ "Saint Kitts and Nevis",+ "Saint Pierre and Miquelon",+ "Saint Vincent and the Grenadines",+ "San José",+ "San Juan",+ "San Marino",+ "San Salvador","Santo Domingo","São Tomé","The Bahamas",- "The Hague"+ "The Hague",+ "Vatican City"],"description": "When referring to national capitals, make sure to treat it as a proper noun."},diff --git a/harper-core/src/linting/matcher.rs b/harper-core/src/linting/matcher.rsindex 7016af0c4..990cc03cf 100644--- a/harper-core/src/linting/matcher.rs+++ b/harper-core/src/linting/matcher.rs@@ -139,9 +139,6 @@ impl Matcher {// countries and capitals with special casing or punctuationtriggers.extend(pt! {- "andorra","la","vella" => "Andorra la Vella",- "Andorra","la","vella" => "Andorra la Vella",- "Andorra","La","Vella" => "Andorra la Vella","guinea","bissau" => "Guinea-Bissau","Guinea","bissau" => "Guinea-Bissau","Guinea","Bissau" => "Guinea-Bissau",@@ -152,9 +149,6 @@ impl Matcher {"port","au","prince" => "Port-au-Prince","Port","au","prince" => "Port-au-Prince","Port","Au","Prince" => "Port-au-Prince",- // port-au-prince won't work here because the left side has hyphens- // Port-au-prince ditto- // Port-Au-Prince ditto"porto","novo" => "Porto-Novo","Porto","novo" => "Porto-Novo","Porto","Novo" => "Porto-Novo",