Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

fix(core): adjust spell check suggestion score function (#2189)

Elijah Pottere4955aeb544d
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dict
index 556a48cdb..0925c831a 100644
--- a/harper-core/dictionary.dict
+++ b/harper-core/dictionary.dict
@@ -9939,7 +9939,6 @@ Tb/g
Tbilisi/Og
Tc/g
Tchaikovsky/Og
-Te/Og
Teasdale/Og
Technicolor/NgJ
Tecumseh/Og
diff --git a/harper-core/src/char_string.rs b/harper-core/src/char_string.rs
index 08170a818..72978461b 100644
--- a/harper-core/src/char_string.rs
+++ b/harper-core/src/char_string.rs
@@ -37,6 +37,9 @@ pub trait CharStringExt {
/// Case-insensitive check if the string ends with the given ASCII suffix.
/// The suffix is assumed to be lowercase.
fn ends_with_ignore_ascii_case_str(&self, suffix: &str) -> bool;
+
+ /// Check if the string contains any vowels
+ fn contains_vowel(&self) -> bool;
}
impl CharStringExt for [char] {
@@ -119,6 +122,10 @@ impl CharStringExt for [char] {
.zip(suffix.iter())
.all(|(a, b)| a.to_ascii_lowercase() == *b)
}
+
+ fn contains_vowel(&self) -> bool {
+ self.iter().any(|c| c.is_vowel())
+ }
}
macro_rules! char_string {
diff --git a/harper-core/src/linting/phrase_corrections/mod.rs b/harper-core/src/linting/phrase_corrections/mod.rs
index 61066677f..81e9ff65f 100644
--- a/harper-core/src/linting/phrase_corrections/mod.rs
+++ b/harper-core/src/linting/phrase_corrections/mod.rs
@@ -1217,7 +1217,7 @@ pub fn lint_group() -> LintGroup {
"Fixes incorrect use of `to worried about`."
),
"The" => (
- ["teh"],
+ ["teh", "te"],
["the"],
"Did you mean the definite article?",
"Fixes especially common misspellings of the word `the`",
diff --git a/harper-core/src/linting/spell_check.rs b/harper-core/src/linting/spell_check.rs
index a098c1339..fbf97fc25 100644
--- a/harper-core/src/linting/spell_check.rs
+++ b/harper-core/src/linting/spell_check.rs
@@ -42,7 +42,7 @@ impl<T: Dictionary> SpellCheck<T> {
// Back off until we find a match.
for dist in 2..5 {
let suggestions: Vec<CharString> =
- suggest_correct_spelling(word, 100, dist, &self.dictionary)
+ suggest_correct_spelling(word, 200, dist, &self.dictionary)
.into_iter()
.filter(|v| {
// Ignore entries outside the configured dialect
@@ -465,4 +465,19 @@ mod tests {
);
}
}
+
+ #[test]
+ fn issue_2026() {
+ assert_top3_suggestion_result(
+ "'Tere' is supposed to be 'There'",
+ SpellCheck::new(FstDictionary::curated(), Dialect::British),
+ "'There' is supposed to be 'There'",
+ );
+
+ assert_top3_suggestion_result(
+ "'fll' is supposed to be 'fill'",
+ SpellCheck::new(FstDictionary::curated(), Dialect::British),
+ "'fill' is supposed to be 'fill'",
+ );
+ }
}
diff --git a/harper-core/src/spell/merged_dictionary.rs b/harper-core/src/spell/merged_dictionary.rs
index be70b061c..3c144e176 100644
--- a/harper-core/src/spell/merged_dictionary.rs
+++ b/harper-core/src/spell/merged_dictionary.rs
@@ -129,6 +129,8 @@ impl Dictionary for MergedDictionary {
self.children
.iter()
.flat_map(|d| d.fuzzy_match(word, max_distance, max_results))
+ .sorted_by_key(|r| r.word)
+ .dedup_by(|a, b| a.word == b.word)
.sorted_by_key(|r| r.edit_distance)
.take(max_results)
.collect()
@@ -143,6 +145,8 @@ impl Dictionary for MergedDictionary {
self.children
.iter()
.flat_map(|d| d.fuzzy_match_str(word, max_distance, max_results))
+ .sorted_by_key(|r| r.word)
+ .dedup_by(|a, b| a.word == b.word)
.sorted_by_key(|r| r.edit_distance)
.take(max_results)
.collect()
diff --git a/harper-core/src/spell/mod.rs b/harper-core/src/spell/mod.rs
index 9e1838679..fd5f23419 100644
--- a/harper-core/src/spell/mod.rs
+++ b/harper-core/src/spell/mod.rs
@@ -1,6 +1,8 @@
//! Contains the relevant code for performing dictionary lookups and spellchecking (i.e. fuzzy
//! dictionary lookups).
+use itertools::Itertools;
+
use crate::{CharString, CharStringExt, DictWordMetadata};
pub use self::dictionary::Dictionary;
@@ -188,6 +190,13 @@ pub(crate) fn is_ll_misspelling(a: &[char], b: &[char]) -> bool {
}
}
+pub fn is_th_h_missing(a: &[char], b: &[char]) -> bool {
+ a.iter().any(|c| c.eq_ignore_ascii_case(&'t'))
+ && b.iter()
+ .tuple_windows()
+ .any(|(a, b)| a.eq_ignore_ascii_case(&'t') && b.eq_ignore_ascii_case(&'h'))
+}
+
/// Returns whether the two words are the same, except that one is written
/// with 'ay' and the other with 'ey'.
///
@@ -314,15 +323,25 @@ fn score_suggestion(misspelled_word: &[char], sug: &FuzzyMatchResult) -> i32 {
score -= 5;
}
+ if is_th_h_missing(misspelled_word, sug.word) {
+ score -= 6;
+ }
+
+ if !misspelled_word.contains_vowel() && !sug.word.contains_vowel() {
+ score += 10;
+ }
+
// Detect dialect-specific variations
if sug.edit_distance == 1
&& (is_cksz_misspelling(misspelled_word, sug.word)
|| is_ou_misspelling(misspelled_word, sug.word)
|| is_ll_misspelling(misspelled_word, sug.word)
- || is_ay_ey_misspelling(misspelled_word, sug.word))
+ || is_ay_ey_misspelling(misspelled_word, sug.word)
+ || is_th_h_missing(misspelled_word, sug.word))
{
score -= 6;
}
+
if sug.edit_distance == 2 {
if is_ei_ie_misspelling(misspelled_word, sug.word) {
score -= 11;
@@ -340,7 +359,7 @@ fn order_suggestions<'b>(
misspelled_word: &[char],
mut matches: Vec<FuzzyMatchResult<'b>>,
) -> Vec<&'b [char]> {
- matches.sort_by_key(|v| score_suggestion(misspelled_word, v));
+ matches.sort_by_cached_key(|v| score_suggestion(misspelled_word, v));
matches.into_iter().map(|v| v.word).collect()
}
@@ -390,7 +409,7 @@ mod tests {
use super::{FstDictionary, suggest_correct_spelling_str};
- const RESULT_LIMIT: usize = 100;
+ const RESULT_LIMIT: usize = 200;
const MAX_EDIT_DIST: u8 = 2;
#[test]
@@ -442,8 +461,6 @@ mod tests {
&FstDictionary::curated(),
);
- dbg!(&results);
-
assert!(results.iter().all_unique())
}
@@ -461,8 +478,6 @@ mod tests {
&FstDictionary::curated(),
);
- dbg!(&results);
-
assert!(results.iter().take(3).contains(&"hello".to_string()));
}
diff --git a/harper-core/tests/text/linters/Alice's Adventures in Wonderland.snap.yml b/harper-core/tests/text/linters/Alice's Adventures in Wonderland.snap.yml
index 7654b98f1..fe4228a23 100644
--- a/harper-core/tests/text/linters/Alice's Adventures in Wonderland.snap.yml
+++ b/harper-core/tests/text/linters/Alice's Adventures in Wonderland.snap.yml
@@ -915,8 +915,8 @@ Message: |
412 | advisable to go with Edgar Atheling to meet William and offer him the crown.
| ^~~~~~~~ Did you mean to spell `Atheling` this way?
Suggest:
- - Replace with: “Steeling”
- Replace with: “Theming”
+ - Replace with: “Steeling”
@@ -1028,7 +1028,7 @@ Message: |
Suggest:
- Replace with: “We”
- Replace with: “WA”
- - Replace with: “WC”
+ - Replace with: “WI”
@@ -2364,9 +2364,9 @@ Message: |
1985 | “’Tis so,” said the Duchess: “and the moral of that is—‘Oh, ’tis love, ’tis
| ^~~ Did you mean to spell `Tis` this way?
Suggest:
+ - Replace with: “This”
- Replace with: “Tic”
- Replace with: “T's”
- - Replace with: “This”
@@ -2376,8 +2376,8 @@ Message: |
| ^~~ Did you mean to spell `tis` this way?
1986 | love, that makes the world go round!’”
Suggest:
- - Replace with: “tic”
- Replace with: “this”
+ - Replace with: “tic”
- Replace with: “ti's”
@@ -2388,8 +2388,8 @@ Message: |
| ^~~ Did you mean to spell `tis` this way?
1986 | love, that makes the world go round!’”
Suggest:
- - Replace with: “tic”
- Replace with: “this”
+ - Replace with: “tic”
- Replace with: “ti's”
@@ -3085,9 +3085,9 @@ Message: |
2418 | “Stand up and repeat ‘’Tis the voice of the sluggard,’” said the Gryphon.
| ^~~ Did you mean to spell `Tis` this way?
Suggest:
+ - Replace with: “This”
- Replace with: “Tic”
- Replace with: “T's”
- - Replace with: “This”
@@ -3112,9 +3112,9 @@ Message: |
2425 | > “’Tis the voice of the Lobster; I heard him declare, “You have baked me too
| ^~~ Did you mean to spell `Tis` this way?
Suggest:
+ - Replace with: “This”
- Replace with: “Tic”
- Replace with: “T's”
- - Replace with: “This”
@@ -3207,9 +3207,9 @@ Message: |
2477 | eagerly that the Gryphon said, in a rather offended tone, “Hm! No accounting for
| ^~ Did you mean to spell `Hm` this way?
Suggest:
- - Replace with: “H'm”
- - Replace with: “Ha”
- - Replace with: “Hem”
+ - Replace with: “Him”
+ - Replace with: “Ho”
+ - Replace with: “Am”
diff --git a/harper-core/tests/text/linters/Computer science.snap.yml b/harper-core/tests/text/linters/Computer science.snap.yml
index 096f25707..b4534dc1d 100644
--- a/harper-core/tests/text/linters/Computer science.snap.yml
+++ b/harper-core/tests/text/linters/Computer science.snap.yml
@@ -56,9 +56,9 @@ Message: |
50 | de Colmar launched the mechanical calculator industry[note 1] when he invented
| ^~ Did you mean to spell `de` this way?
Suggest:
+ - Replace with: “den”
- Replace with: “db”
- Replace with: “dc”
- - Replace with: “dd”
@@ -242,8 +242,8 @@ Message: |
110 | and those of others such as numerical analyst George Forsythe, were rewarded:
| ^~~~~~~~ Did you mean to spell `Forsythe` this way?
Suggest:
- - Replace with: “Forster”
- Replace with: “Forsythia”
+ - Replace with: “Forster”
- Replace with: “Porsche”
@@ -338,8 +338,8 @@ Message: |
127 | the ACM—turingineer, turologist, flow-charts-man, applied meta-mathematician,
| ^~~~~~~~~~ Did you mean to spell `turologist` this way?
Suggest:
- - Replace with: “urologist”
- Replace with: “theologist”
+ - Replace with: “urologist”
- Replace with: “neurologist”
@@ -635,8 +635,8 @@ Message: |
| ^~ Did you mean to spell `A.` this way?
Suggest:
- Replace with: “Ax”
+ - Replace with: “A”
- Replace with: “Ab”
- - Replace with: “Ac”
@@ -688,7 +688,7 @@ Message: |
Suggest:
- Replace with: “We”
- Replace with: “WA”
- - Replace with: “WC”
+ - Replace with: “WI”
@@ -765,9 +765,9 @@ Message: |
216 | that they are theory, abstraction (modeling), and design. Amnon H. Eden
| ^~ Did you mean to spell `H.` this way?
Suggest:
- - Replace with: “Ht”
- Replace with: “He”
- - Replace with: “Hf”
+ - Replace with: “Hi”
+ - Replace with: “Ht”
@@ -988,9 +988,9 @@ Message: |
393 | term "architecture" in computer literature can be traced to the work of Lyle R.
| ^~ Did you mean to spell `R.` this way?
Suggest:
- - Replace with: “Rm”
- - Replace with: “R”
- - Replace with: “Rd”
+ - Replace with: “Re”
+ - Replace with: “RI”
+ - Replace with: “Ra”
@@ -999,9 +999,9 @@ Message: |
394 | Johnson and Frederick P. Brooks Jr., members of the Machine Organization
| ^~ Did you mean to spell `P.` this way?
Suggest:
- - Replace with: “Pm”
- - Replace with: “P”
- - Replace with: “Pd”
+ - Replace with: “Pa”
+ - Replace with: “Po”
+ - Replace with: “PE”
@@ -1012,8 +1012,8 @@ Message: |
| ^~~~~ Did you mean to spell `Petri` this way?
Suggest:
- Replace with: “Petra”
+ - Replace with: “Perth”
- Replace with: “Perry”
- - Replace with: “Patti”
@@ -1074,9 +1074,9 @@ Message: |
| ^~ Did you mean to spell `de` this way?
445 | > "high-voltage/low-voltage", etc.).
Suggest:
+ - Replace with: “den”
- Replace with: “db”
- Replace with: “dc”
- - Replace with: “dd”
@@ -1107,7 +1107,7 @@ Message: |
Suggest:
- Replace with: “Baum”
- Replace with: “Bohr”
- - Replace with: “Chm”
+ - Replace with: “Ohm”
diff --git a/harper-core/tests/text/linters/Difficult sentences.snap.yml b/harper-core/tests/text/linters/Difficult sentences.snap.yml
index de9d216aa..3dd2647c6 100644
--- a/harper-core/tests/text/linters/Difficult sentences.snap.yml
+++ b/harper-core/tests/text/linters/Difficult sentences.snap.yml
@@ -341,9 +341,9 @@ Message: |
443 | With their reputation on the line, they decided to fire their PR team.
| ^~ Did you mean to spell `PR` this way?
Suggest:
- - Replace with: “Pt”
- Replace with: “Pa”
- Replace with: “Par”
+ - Replace with: “Pre”
diff --git a/harper-core/tests/text/linters/Part-of-speech tagging.snap.yml b/harper-core/tests/text/linters/Part-of-speech tagging.snap.yml
index 964c2f20a..132e89106 100644
--- a/harper-core/tests/text/linters/Part-of-speech tagging.snap.yml
+++ b/harper-core/tests/text/linters/Part-of-speech tagging.snap.yml
@@ -38,9 +38,9 @@ Message: |
18 | two distinctive groups: rule-based and stochastic. E. Brill's tagger, one of the
| ^~ Did you mean to spell `E.` this way?
Suggest:
- - Replace with: “Em”
- - Replace with: “Eh”
- - Replace with: “EC”
+ - Replace with: “E”
+ - Replace with: “Ea”
+ - Replace with: “Ed”
@@ -78,7 +78,7 @@ Message: |
Suggest:
- Replace with: “Nun”
- Replace with: “Non”
- - Replace with: “NV”
+ - Replace with: “Na”
@@ -88,9 +88,9 @@ Message: |
| ^~~ Did you mean to spell `NNS` this way?
50 | for singular proper nouns (see the POS tags used in the Brown Corpus). Other
Suggest:
- - Replace with: “NBS”
- Replace with: “NES”
- - Replace with: “NS”
+ - Replace with: “Ens”
+ - Replace with: “INS”
@@ -238,7 +238,7 @@ Message: |
Suggest:
- Replace with: “We”
- Replace with: “WA”
- - Replace with: “WC”
+ - Replace with: “WI”
@@ -248,9 +248,9 @@ Message: |
| ^ Did you mean to spell `s` this way?
99 | the tagging was nearly perfect (allowing for some cases on which even human
Suggest:
- - Replace with: “sf”
- - Replace with: “sh”
- Replace with: “so”
+ - Replace with: “as”
+ - Replace with: “is”
@@ -398,7 +398,7 @@ Message: |
Suggest:
- Replace with: “We”
- Replace with: “WA”
- - Replace with: “WC”
+ - Replace with: “WI”
diff --git a/harper-core/tests/text/linters/Spell.US.snap.yml b/harper-core/tests/text/linters/Spell.US.snap.yml
index 1234c982a..641c6de01 100644
--- a/harper-core/tests/text/linters/Spell.US.snap.yml
+++ b/harper-core/tests/text/linters/Spell.US.snap.yml
@@ -135,8 +135,8 @@ Message: |
| ^~~~~~~ Did you mean to spell `Theatre` this way?
Suggest:
- Replace with: “Theater”
+ - Replace with: “Sheathe”
- Replace with: “Heater”
- - Replace with: “Cheater”
diff --git a/harper-core/tests/text/linters/Spell.snap.yml b/harper-core/tests/text/linters/Spell.snap.yml
index 70053227d..7ab547c5f 100644
--- a/harper-core/tests/text/linters/Spell.snap.yml
+++ b/harper-core/tests/text/linters/Spell.snap.yml
@@ -110,9 +110,9 @@ Message: |
13 | At the centre of the theatre I dropped a litre of coke.
| ^~~~~ Did you mean to spell `litre` this way?
Suggest:
+ - Replace with: “lithe”
- Replace with: “lire”
- Replace with: “lite”
- - Replace with: “liter”
diff --git a/harper-core/tests/text/linters/The Constitution of the United States.snap.yml b/harper-core/tests/text/linters/The Constitution of the United States.snap.yml
index e457df7cf..6a0e9832c 100644
--- a/harper-core/tests/text/linters/The Constitution of the United States.snap.yml
+++ b/harper-core/tests/text/linters/The Constitution of the United States.snap.yml
@@ -42,8 +42,8 @@ Message: |
| ^~ Did you mean to spell `I.` this way?
Suggest:
- Replace with: “In”
+ - Replace with: “Id”
- Replace with: “IC”
- - Replace with: “IE”
@@ -736,7 +736,7 @@ Message: |
Suggest:
- Replace with: “fact”
- Replace with: “factor”
- - Replace with: “facts”
+ - Replace with: “faith”
@@ -802,7 +802,7 @@ Message: |
Suggest:
- Replace with: “fact”
- Replace with: “factor”
- - Replace with: “facts”
+ - Replace with: “faith”
@@ -1727,9 +1727,9 @@ Message: |
663 | ## Article. V.
| ^~ Did you mean to spell `V.` this way?
Suggest:
- - Replace with: “Vs.”
- - Replace with: “Vb”
- Replace with: “Vi”
+ - Replace with: “Va”
+ - Replace with: “Vs.”
diff --git a/harper-core/tests/text/linters/The Great Gatsby.snap.yml b/harper-core/tests/text/linters/The Great Gatsby.snap.yml
index 86f972860..942b92cad 100644
--- a/harper-core/tests/text/linters/The Great Gatsby.snap.yml
+++ b/harper-core/tests/text/linters/The Great Gatsby.snap.yml
@@ -3,9 +3,9 @@ Message: |
3 | BY F. SCOTT FITZGERALD
| ^~ Did you mean to spell `F.` this way?
Suggest:
- - Replace with: “Fa”
+ - Replace with: “Fe”
- Replace with: “F”
- - Replace with: “F1”
+ - Replace with: “Ff”
@@ -343,9 +343,9 @@ Message: |
120 | was a factual imitation of some Hôtel de Ville in Normandy, with a tower on one
| ^~ Did you mean to spell `de` this way?
Suggest:
+ - Replace with: “den”
- Replace with: “db”
- Replace with: “dc”
- - Replace with: “dd”
@@ -818,8 +818,8 @@ Message: |
| ^~ Did you mean to spell `T.` this way?
Suggest:
- Replace with: “Ta”
- - Replace with: “Tb”
- - Replace with: “Tn”
+ - Replace with: “Ti”
+ - Replace with: “Th”
@@ -828,8 +828,8 @@ Message: |
664 | it, you perceive, after a moment, the eyes of Doctor T. J. Eckleburg. The eyes
| ^~ Did you mean to spell `J.` this way?
Suggest:
- - Replace with: “Jg”
- - Replace with: “J”
+ - Replace with: “Jo”
+ - Replace with: “Jr”
- Replace with: “JD”
@@ -852,8 +852,8 @@ Message: |
| ^~ Did you mean to spell `T.` this way?
Suggest:
- Replace with: “Ta”
- - Replace with: “Tb”
- - Replace with: “Tn”
+ - Replace with: “Ti”
+ - Replace with: “Th”
@@ -862,8 +862,8 @@ Message: |
665 | of Doctor T. J. Eckleburg are blue and gigantic—their retinas are one yard high.
| ^~ Did you mean to spell `J.` this way?
Suggest:
- - Replace with: “Jg”
- - Replace with: “J”
+ - Replace with: “Jo”
+ - Replace with: “Jr”
- Replace with: “JD”
@@ -930,7 +930,7 @@ Message: |
Suggest:
- Replace with: “Bu”
- Replace with: “Be”
- - Replace with: “Bf”
+ - Replace with: “Bi”
@@ -980,9 +980,9 @@ Message: |
729 | spotted dress of dark blue crêpe-de-chine, contained no facet or gleam of
| ^~ Did you mean to spell `de` this way?
Suggest:
+ - Replace with: “den”
- Replace with: “db”
- Replace with: “dc”
- - Replace with: “dd”
@@ -1055,9 +1055,9 @@ Message: |
784 | We backed up to a gray old man who bore an absurd resemblance to John D.
| ^~ Did you mean to spell `D.` this way?
Suggest:
- - Replace with: “Dc”
- Replace with: “DA”
- Replace with: “DE”
+ - Replace with: “Di”
@@ -1247,7 +1247,7 @@ Message: |
Suggest:
- Replace with: “Bu”
- Replace with: “Be”
- - Replace with: “Bf”
+ - Replace with: “Bi”
@@ -2088,7 +2088,7 @@ Message: |
Suggest:
- Replace with: “outta”
- Replace with: “out”
- - Replace with: “outs”
+ - Replace with: “oath”
@@ -2353,8 +2353,8 @@ Message: |
| ^~~~ Did you mean to spell `Etty` this way?
Suggest:
- Replace with: “Etta”
+ - Replace with: “Thy”
- Replace with: “Betty”
- - Replace with: “Getty”
@@ -2386,9 +2386,9 @@ Message: |
1858 | farther out on the Island came the Cheadles and the O. R. P. Schraeders, and the
| ^~ Did you mean to spell `R.` this way?
Suggest:
- - Replace with: “Rm”
- - Replace with: “R”
- - Replace with: “Rd”
+ - Replace with: “Re”
+ - Replace with: “RI”
+ - Replace with: “Ra”
@@ -2397,9 +2397,9 @@ Message: |
1858 | farther out on the Island came the Cheadles and the O. R. P. Schraeders, and the
| ^~ Did you mean to spell `P.` this way?
Suggest:
- - Replace with: “Pm”
- - Replace with: “P”
- - Replace with: “Pd”
+ - Replace with: “Pa”
+ - Replace with: “Po”
+ - Replace with: “PE”
@@ -2441,9 +2441,9 @@ Message: |
1861 | the gravel drive that Mrs. Ulysses Swett’s automobile ran over his right hand.
| ^~~~~~~ Did you mean to spell `Swett’s` this way?
Suggest:
+ - Replace with: “Seth's”
- Replace with: “Scott's”
- Replace with: “Sept's”
- - Replace with: “Seth's”
@@ -2463,9 +2463,9 @@ Message: |
1862 | The Dancies came, too, and S. B. Whitebait, who was well over sixty, and Maurice
| ^~ Did you mean to spell `S.` this way?
Suggest:
- - Replace with: “Sf”
- - Replace with: “Sh”
- - Replace with: “Sq”
+ - Replace with: “So”
+ - Replace with: “SA”
+ - Replace with: “Si”
@@ -2476,7 +2476,7 @@ Message: |
Suggest:
- Replace with: “Bu”
- Replace with: “Be”
- - Replace with: “Bf”
+ - Replace with: “Bi”
@@ -2487,8 +2487,8 @@ Message: |
| ^~ Did you mean to spell `A.` this way?
Suggest:
- Replace with: “Ax”
+ - Replace with: “A”
- Replace with: “Ab”
- - Replace with: “Ac”
@@ -2566,9 +2566,9 @@ Message: |
1868 | Excellence, and Eckhaust and Clyde Cohen and Don S. Schwartze (the son) and
| ^~ Did you mean to spell `S.` this way?
Suggest:
- - Replace with: “Sf”
- - Replace with: “Sh”
- - Replace with: “Sq”
+ - Replace with: “So”
+ - Replace with: “SA”
+ - Replace with: “Si”
@@ -2610,9 +2610,9 @@ Message: |
1870 | Catlips and the Bembergs and G. Earl Muldoon, brother to that Muldoon who
| ^~ Did you mean to spell `G.` this way?
Suggest:
- - Replace with: “Gr”
- Replace with: “Go”
- - Replace with: “GB”
+ - Replace with: “GI”
+ - Replace with: “GU”
@@ -2654,9 +2654,9 @@ Message: |
1871 | afterward strangled his wife. Da Fontano the promoter came there, and Ed Legros
| ^~ Did you mean to spell `Da` this way?
Suggest:
- - Replace with: “Dab”
- Replace with: “Dad”
- Replace with: “Dam”
+ - Replace with: “Day”
@@ -2702,7 +2702,7 @@ Message: |
Suggest:
- Replace with: “Bu”
- Replace with: “Be”
- - Replace with: “Bf”
+ - Replace with: “Bi”
@@ -2724,7 +2724,7 @@ Message: |
Suggest:
- Replace with: “Db”
- Replace with: “Dc”
- - Replace with: “Def”
+ - Replace with: “Dd”
@@ -2874,9 +2874,9 @@ Message: |
1881 | Scullys and S. W. Belcher and the Smirkes and the young Quinns, divorced now,
| ^~ Did you mean to spell `S.` this way?
Suggest:
- - Replace with: “Sf”
- - Replace with: “Sh”
- - Replace with: “Sq”
+ - Replace with: “So”
+ - Replace with: “SA”
+ - Replace with: “Si”
@@ -2887,7 +2887,7 @@ Message: |
Suggest:
- Replace with: “We”
- Replace with: “WA”
- - Replace with: “WC”
+ - Replace with: “WI”
@@ -2932,9 +2932,9 @@ Message: |
1882 | and Henry L. Palmetto, who killed himself by jumping in front of a subway train
| ^~ Did you mean to spell `L.` this way?
Suggest:
- - Replace with: “Lb”
- - Replace with: “L”
- - Replace with: “LC”
+ - Replace with: “Le”
+ - Replace with: “Li”
+ - Replace with: “Lu”
@@ -3054,9 +3054,9 @@ Message: |
1896 | Fitz-Peters and Mr. P. Jewett, once head of the American Legion, and Miss
| ^~ Did you mean to spell `P.` this way?
Suggest:
- - Replace with: “Pm”
- - Replace with: “P”
- - Replace with: “Pd”
+ - Replace with: “Pa”
+ - Replace with: “Po”
+ - Replace with: “PE”
@@ -3136,9 +3136,9 @@ Message: |
1982 | de Boulogne.
| ^~ Did you mean to spell `de` this way?
Suggest:
+ - Replace with: “den”
- Replace with: “db”
- Replace with: “dc”
- - Replace with: “dd”
@@ -4507,9 +4507,9 @@ Message: |
3024 | a source of satisfaction to James Gatz of North Dakota, isn’t easy to say.
| ^~~~ Did you mean to spell `Gatz` this way?
Suggest:
+ - Replace with: “Garth”
+ - Replace with: “Goth”
- Replace with: “Ga's”
- - Replace with: “Gate”
- - Replace with: “GHz”
@@ -4518,9 +4518,9 @@ Message: |
3026 | James Gatz—that was really, or at least legally, his name. He had changed it at
| ^~~~ Did you mean to spell `Gatz` this way?
Suggest:
+ - Replace with: “Garth”
+ - Replace with: “Goth”
- Replace with: “Ga's”
- - Replace with: “Gate”
- - Replace with: “GHz”
@@ -4542,9 +4542,9 @@ Message: |
3029 | on Lake Superior. It was James Gatz who had been loafing along the beach that
| ^~~~ Did you mean to spell `Gatz` this way?
Suggest:
+ - Replace with: “Garth”
+ - Replace with: “Goth”
- Replace with: “Ga's”
- - Replace with: “Gate”
- - Replace with: “GHz”
@@ -4596,9 +4596,9 @@ Message: |
| ^~ Did you mean to spell `de` this way?
3075 | sent him to sea in a yacht, were common property of the turgid journalism
Suggest:
+ - Replace with: “den”
- Replace with: “db”
- Replace with: “dc”
- - Replace with: “dd”
@@ -4610,7 +4610,7 @@ Message: |
Suggest:
- Replace with: “Maintenance”
- Replace with: “Maintop”
- - Replace with: “Maine's”
+ - Replace with: “Matheson”
@@ -4621,8 +4621,8 @@ Message: |
| ^~~~~~ Did you mean to spell `Gatz’s` this way?
Suggest:
- Replace with: “Gate's”
- - Replace with: “Ga's”
- - Replace with: “Gaea's”
+ - Replace with: “Garth's”
+ - Replace with: “Goth's”
@@ -4631,9 +4631,9 @@ Message: |
3079 | To young Gatz, resting on his oars and looking up at the railed deck, that yacht
| ^~~~ Did you mean to spell `Gatz` this way?
Suggest:
+ - Replace with: “Garth”
+ - Replace with: “Goth”
- Replace with: “Ga's”
- - Replace with: “Gate”
- - Replace with: “GHz”
@@ -5308,9 +5308,9 @@ Message: |
3647 | up now, and say—How-de-do.”
| ^~ Did you mean to spell `de` this way?
Suggest:
+ - Replace with: “den”
- Replace with: “db”
- Replace with: “dc”
- - Replace with: “dd”
@@ -5468,8 +5468,8 @@ Message: |
| ^~ Did you mean to spell `T.` this way?
Suggest:
- Replace with: “Ta”
- - Replace with: “Tb”
- - Replace with: “Tn”
+ - Replace with: “Ti”
+ - Replace with: “Th”
@@ -5478,8 +5478,8 @@ Message: |
3874 | while in silence. Then as Doctor T. J. Eckleburg’s faded eyes came into sight
| ^~ Did you mean to spell `J.` this way?
Suggest:
- - Replace with: “Jg”
- - Replace with: “J”
+ - Replace with: “Jo”
+ - Replace with: “Jr”
- Replace with: “JD”
@@ -5537,8 +5537,8 @@ Message: |
| ^~ Did you mean to spell `T.` this way?
Suggest:
- Replace with: “Ta”
- - Replace with: “Tb”
- - Replace with: “Tn”
+ - Replace with: “Ti”
+ - Replace with: “Th”
@@ -5547,8 +5547,8 @@ Message: |
3948 | behind. Over the ashheaps the giant eyes of Doctor T. J. Eckleburg kept their
| ^~ Did you mean to spell `J.` this way?
Suggest:
- - Replace with: “Jg”
- - Replace with: “J”
+ - Replace with: “Jo”
+ - Replace with: “Jr”
- Replace with: “JD”
@@ -5741,9 +5741,9 @@ Message: |
4073 | “We're getting old,” said Daisy. “lf we were young we’d rise and dance.”
| ^~ Did you mean to spell `lf` this way?
Suggest:
- - Replace with: “l”
- - Replace with: “lb”
- - Replace with: “lg”
+ - Replace with: “la”
+ - Replace with: “lo”
+ - Replace with: “elf”
@@ -7026,9 +7026,9 @@ Message: |
5122 | ghost of a superior “Hm!”
| ^~ Did you mean to spell `Hm` this way?
Suggest:
- - Replace with: “H'm”
- - Replace with: “Ha”
- - Replace with: “Hem”
+ - Replace with: “Him”
+ - Replace with: “Ho”
+ - Replace with: “Am”
@@ -7093,8 +7093,8 @@ Message: |
| ^~ Did you mean to spell `T.` this way?
Suggest:
- Replace with: “Ta”
- - Replace with: “Tb”
- - Replace with: “Tn”
+ - Replace with: “Ti”
+ - Replace with: “Th”
@@ -7103,8 +7103,8 @@ Message: |
5156 | of Doctor T. J. Eckleburg, which had just emerged, pale and enormous, from the
| ^~ Did you mean to spell `J.` this way?
Suggest:
- - Replace with: “Jg”
- - Replace with: “J”
+ - Replace with: “Jo”
+ - Replace with: “Jr”
- Replace with: “JD”
@@ -7421,7 +7421,7 @@ Message: |
Suggest:
- Replace with: “eta”
- Replace with: “etc.”
- - Replace with: “etch”
+ - Replace with: “ethic”
@@ -7500,9 +7500,9 @@ Message: |
5352 | I think it was on the third day that a telegram signed Henry C. Gatz arrived
| ^~ Did you mean to spell `C.` this way?
Suggest:
- - Replace with: “Cw”
- - Replace with: “Cc”
- - Replace with: “Ch”
+ - Replace with: “Cu”
+ - Replace with: “CI”
+ - Replace with: “Ce”
@@ -7512,9 +7512,9 @@ Message: |
| ^~~~ Did you mean to spell `Gatz` this way?
5353 | from a town in Minnesota. It said only that the sender was leaving immediately
Suggest:
+ - Replace with: “Garth”
+ - Replace with: “Goth”
- Replace with: “Ga's”
- - Replace with: “Gate”
- - Replace with: “GHz”
@@ -7543,9 +7543,9 @@ Message: |
5385 | After a little while Mr. Gatz opened the door and came out, his mouth ajar, his
| ^~~~ Did you mean to spell `Gatz` this way?
Suggest:
+ - Replace with: “Garth”
+ - Replace with: “Goth”
- Replace with: “Ga's”
- - Replace with: “Gate”
- - Replace with: “GHz”
@@ -7578,9 +7578,9 @@ Message: |
5396 | “Gatz is my name.”
| ^~~~ Did you mean to spell `Gatz` this way?
Suggest:
+ - Replace with: “Garth”
+ - Replace with: “Goth”
- Replace with: “Ga's”
- - Replace with: “Gate”
- - Replace with: “GHz”
@@ -7589,9 +7589,9 @@ Message: |
5398 | “—Mr. Gatz. I thought you might want to take the body West.”
| ^~~~ Did you mean to spell `Gatz` this way?
Suggest:
+ - Replace with: “Garth”
+ - Replace with: “Goth”
- Replace with: “Ga's”
- - Replace with: “Gate”
- - Replace with: “GHz”
@@ -7607,8 +7607,8 @@ Message: |
5412 | “If he’d of lived, he’d of been a great man. A man like James J. Hill. He’d of
| ^~ Did you mean to spell `J.` this way?
Suggest:
- - Replace with: “Jg”
- - Replace with: “J”
+ - Replace with: “Jo”
+ - Replace with: “Jr”
- Replace with: “JD”
@@ -7637,7 +7637,7 @@ Message: |
Suggest:
- Replace with: “Bu”
- Replace with: “Be”
- - Replace with: “Bf”
+ - Replace with: “Bi”
@@ -7646,9 +7646,9 @@ Message: |
5455 | and I’m sort of helpless without them. My address is care of B. F.———”
| ^~ Did you mean to spell `F.` this way?
Suggest:
- - Replace with: “Fa”
+ - Replace with: “Fe”
- Replace with: “F”
- - Replace with: “F1”
+ - Replace with: “Ff”
@@ -7835,9 +7835,9 @@ Message: |
| ^~~~ Did you mean to spell `Gatz` this way?
5560 | up and down excitedly in the hall. His pride in his son and in his son’s
Suggest:
+ - Replace with: “Garth”
+ - Replace with: “Goth”
- Replace with: “Ga's”
- - Replace with: “Gate”
- - Replace with: “GHz”
@@ -7950,9 +7950,9 @@ Message: |
5629 | then Mr. Gatz and the minister and I in the limousine, and a little later four
| ^~~~ Did you mean to spell `Gatz` this way?
Suggest:
+ - Replace with: “Garth”
+ - Replace with: “Goth”
- Replace with: “Ga's”
- - Replace with: “Gate”
- - Replace with: “GHz”