Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat(core): use a better quote-pairing algorithm (#2036)
Elijah Potterfb8423d275dc
diff --git a/harper-core/src/document.rs b/harper-core/src/document.rsindex 2fe9cf323..3244c3313 100644--- a/harper-core/src/document.rs+++ b/harper-core/src/document.rs@@ -3,6 +3,7 @@ use std::collections::VecDeque;use std::fmt::Display;use harper_brill::{Chunker, Tagger, brill_tagger, burn_chunker};+use itertools::Itertools;use paste::paste;use crate::expr::{Expr, ExprExt, FirstMatchOf, Repeating, SequenceExpr};@@ -351,22 +352,64 @@ impl Document {/// [`Punctuation::Quote::twin_loc`] field. This is on a best-effort/// basis.///- /// Current algorithm is basic and could use some work.+ /// Current algorithm is based on https://leancrew.com/all-this/2025/03/a-mac-smart-quote-curiosityfn match_quotes(&mut self) {- let quote_indices: Vec<usize> = self.tokens.iter_quote_indices().collect();-- for i in 0..quote_indices.len() / 2 {- let a_i = quote_indices[i * 2];- let b_i = quote_indices[i * 2 + 1];+ let mut pg_indices: Vec<_> = vec![0];+ pg_indices.extend(self.iter_paragraph_break_indices());+ pg_indices.push(self.tokens.len());++ // Avoid allocation in loop+ let mut quote_indices = Vec::new();+ let mut open_quote_indices = Vec::new();++ for (start, end) in pg_indices.into_iter().tuple_windows() {+ let pg = &mut self.tokens[start..end];++ quote_indices.clear();+ quote_indices.extend(pg.iter_quote_indices());+ open_quote_indices.clear();++ // Find open quotes first.+ for quote in "e_indices {+ let is_open = *quote == 0+ || pg[0..*quote].iter_word_likes().next().is_none()+ || pg[quote - 1].kind.is_whitespace()+ || matches!(+ pg[quote - 1].kind.as_punctuation(),+ Some(Punctuation::LessThan)+ | Some(Punctuation::OpenRound)+ | Some(Punctuation::OpenSquare)+ | Some(Punctuation::OpenCurly)+ | Some(Punctuation::Apostrophe)+ );- {- let a = self.tokens[a_i].kind.as_mut_quote().unwrap();- a.twin_loc = Some(b_i);+ if is_open {+ open_quote_indices.push(*quote);+ }}- {- let b = self.tokens[b_i].kind.as_mut_quote().unwrap();- b.twin_loc = Some(a_i);+ while let Some(open_idx) = open_quote_indices.pop() {+ let Some(close_idx) = pg[open_idx + 1..].iter_quote_indices().next() else {+ continue;+ };++ if pg[close_idx + open_idx + 1]+ .kind+ .as_quote()+ .unwrap()+ .twin_loc+ .is_some()+ {+ continue;+ }++ pg[open_idx].kind.as_mut_quote().unwrap().twin_loc =+ Some(close_idx + open_idx + start + 1);+ pg[close_idx + open_idx + 1]+ .kind+ .as_mut_quote()+ .unwrap()+ .twin_loc = Some(open_idx + start);}}}@@ -928,6 +971,7 @@ mod tests {use itertools::Itertools;use super::Document;+ use crate::TokenStringExt;use crate::{Span, parsers::MarkdownOptions};fn assert_condensed_contractions(text: &str, final_tok_count: usize) {@@ -1257,4 +1301,59 @@ mod tests {assert!(doc.tokens.len() == 1);assert!(doc.tokens[0].kind.is_word());}++ #[test]+ fn finds_unmatched_quotes_in_document() {+ let raw = r#"+This is a paragraph with a single word "quoted."++This is a second paragraph with no quotes.++This is a third paragraph with a single erroneous "quote.++This is a final paragraph with a weird "quote and a not-weird "quote".+ "#;++ let doc = Document::new_markdown_default_curated(raw);++ let quote_twins: Vec<_> = doc+ .iter_quotes()+ .map(|t| t.kind.as_quote().unwrap().twin_loc)+ .collect();++ assert_eq!(+ quote_twins,+ vec![Some(19), Some(16), None, None, Some(89), Some(87)]+ )+ }++ #[test]+ fn issue_1901() {+ let raw = r#"+"A quoted line"+"A quote without a closing mark+"Another quoted lined"+"The last quoted line"+ "#;++ let doc = Document::new_markdown_default_curated(raw);++ let quote_twins: Vec<_> = doc+ .iter_quotes()+ .map(|t| t.kind.as_quote().unwrap().twin_loc)+ .collect();++ assert_eq!(+ quote_twins,+ vec![+ Some(6),+ Some(0),+ None,+ Some(27),+ Some(21),+ Some(37),+ Some(29)+ ]+ )+ }}diff --git a/harper-core/src/expr/sequence_expr.rs b/harper-core/src/expr/sequence_expr.rsindex 31054f022..722c5d2b4 100644--- a/harper-core/src/expr/sequence_expr.rs+++ b/harper-core/src/expr/sequence_expr.rs@@ -464,6 +464,7 @@ impl SequenceExpr {gen_then_from_is!(hyphen);gen_then_from_is!(period);gen_then_from_is!(semicolon);+ gen_then_from_is!(quote);// Otherdiff --git a/harper-core/src/linting/lint_group.rs b/harper-core/src/linting/lint_group.rsindex e2903cc7a..7eef74754 100644--- a/harper-core/src/linting/lint_group.rs+++ b/harper-core/src/linting/lint_group.rs@@ -103,6 +103,7 @@ use super::pronoun_knew::PronounKnew;use super::proper_noun_capitalization_linters;use super::quantifier_needs_of::QuantifierNeedsOf;use super::quite_quiet::QuiteQuiet;+use super::quote_spacing::QuoteSpacing;use super::redundant_additive_adverbs::RedundantAdditiveAdverbs;use super::regionalisms::Regionalisms;use super::repeated_words::RepeatedWords;@@ -511,6 +512,7 @@ impl LintGroup {insert_struct_rule!(PronounKnew, true);insert_expr_rule!(QuantifierNeedsOf, true);insert_expr_rule!(QuiteQuiet, true);+ insert_struct_rule!(QuoteSpacing, true);insert_expr_rule!(RedundantAdditiveAdverbs, true);insert_struct_rule!(RepeatedWords, true);insert_struct_rule!(SaveToSafe, true);diff --git a/harper-core/src/linting/mod.rs b/harper-core/src/linting/mod.rsindex 98fdc0e2d..c9b55f929 100644--- a/harper-core/src/linting/mod.rs+++ b/harper-core/src/linting/mod.rs@@ -115,6 +115,7 @@ mod pronoun_knew;mod proper_noun_capitalization_linters;mod quantifier_needs_of;mod quite_quiet;+mod quote_spacing;mod redundant_additive_adverbs;mod regionalisms;mod repeated_words;@@ -252,6 +253,7 @@ pub use pronoun_contraction::PronounContraction;pub use pronoun_inflection_be::PronounInflectionBe;pub use quantifier_needs_of::QuantifierNeedsOf;pub use quite_quiet::QuiteQuiet;+pub use quote_spacing::QuoteSpacing;pub use redundant_additive_adverbs::RedundantAdditiveAdverbs;pub use regionalisms::Regionalisms;pub use repeated_words::RepeatedWords;diff --git a/harper-core/src/linting/quote_spacing.rs b/harper-core/src/linting/quote_spacing.rsnew file mode 100644index 000000000..72715065c--- /dev/null+++ b/harper-core/src/linting/quote_spacing.rs@@ -0,0 +1,84 @@+use crate::expr::{ExprExt, SequenceExpr};+use crate::linting::LintKind;+use crate::{Document, TokenStringExt};++use super::{Lint, Linter};++pub struct QuoteSpacing {+ expr: SequenceExpr,+}++impl QuoteSpacing {+ pub fn new() -> Self {+ Self {+ expr: SequenceExpr::default()+ .then_any_word()+ .then_quote()+ .then_any_word(),+ }+ }+}++impl Default for QuoteSpacing {+ fn default() -> Self {+ Self::new()+ }+}++impl Linter for QuoteSpacing {+ fn lint(&mut self, document: &Document) -> Vec<Lint> {+ let mut lints = Vec::new();++ for m in self.expr.iter_matches_in_doc(document) {+ let matched_tokens = m.get_content(document.get_tokens());++ let Some(span) = matched_tokens.span() else {+ continue;+ };++ lints.push(Lint {+ span,+ lint_kind: LintKind::Formatting,+ suggestions: vec![],+ message: "A quote must be preceded or succeeded by a space.".to_owned(),+ priority: 31,+ })+ }++ lints+ }++ fn description(&self) -> &str {+ "Checks that quotation marks are preceded or succeeded by whitespace."+ }+}++#[cfg(test)]+mod tests {+ use super::QuoteSpacing;+ use crate::linting::tests::{assert_lint_count, assert_no_lints};++ #[test]+ fn flags_missing_space_before_quote() {+ assert_lint_count("He said\"hello\" to me.", QuoteSpacing::default(), 1);+ }++ #[test]+ fn flags_missing_space_after_quote() {+ assert_lint_count(+ "She whispered \"hurry\"and left.",+ QuoteSpacing::default(),+ 1,+ );+ }++ #[test]+ fn allows_quotes_with_spacing() {+ assert_no_lints("They shouted \"charge\" together.", QuoteSpacing::default());+ }++ #[test]+ fn allows_quotes_at_end_of_sentence() {+ assert_no_lints("They shouted \"charge.\"", QuoteSpacing::default());+ }+}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.ymlindex 394f9a06c..b991bea71 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@@ -463,6 +463,20 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 201 | the carrier,” she thought; “and how funny it’ll seem, sending presents to one’s+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 206 | Oh dear, what nonsense I’m talking!”+ | ^ This quote has no termination.+++Lint: Capitalization (31 priority)Message: |226 | himself as he came, “Oh! the Duchess, the Duchess! Oh! won’t she be savage if@@ -538,6 +552,13 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 254 | > “How doth the little crocodile Improve his shining tail, And pour the waters+ | ^ This quote has no termination.+++Lint: Readability (127 priority)Message: |260 | “I’m sure those are not the right words,” said poor Alice, and her eyes filled@@ -924,6 +945,13 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 502 | > Fury: ‘I’ll try the whole cause, and condemn you to death.’”+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |527 | “What a pity it wouldn’t stay!” sighed the Lory, as soon as it was quite out of@@ -1071,6 +1099,21 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 659 | Next came an angry voice—the Rabbit’s—“Pat! Pat! Where are you?” And then a+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 659 | Next came an angry voice—the Rabbit’s—“Pat! Pat! Where are you?” And then a+ | ^ This quote has no termination.+ 660 | voice she had never heard before, “Sure then I’m here! Digging for apples, yer+++Lint: Spelling (63 priority)Message: |660 | voice she had never heard before, “Sure then I’m here! Digging for apples, yer@@ -1155,6 +1198,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 692 | below!” (a loud crash)—“Now, who did that?—It was Bill, I fancy—Who’s to go down+ | ^ This quote has no termination.+++Lint: Capitalization (31 priority)Message: |694 | down—Here, Bill! the master says you’re to go down the chimney!”@@ -1164,6 +1214,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 694 | down—Here, Bill! the master says you’re to go down the chimney!”+ | ^ This quote has no termination.+++Lint: Readability (127 priority)Message: |701 | She drew her foot as far down the chimney as she could, and waited till she@@ -1177,6 +1234,37 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 706 | The first thing she heard was a general chorus of “There goes Bill!” then the+ 707 | Rabbit’s voice along—“Catch him, you by the hedge!” then silence, and then+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 707 | Rabbit’s voice along—“Catch him, you by the hedge!” then silence, and then+ | ^ This quote has no termination.+ 708 | another confusion of voices—“Hold up his head—Brandy now—Don’t choke him—How was++++Lint: Formatting (255 priority)+Message: |+ 707 | Rabbit’s voice along—“Catch him, you by the hedge!” then silence, and then+ 708 | another confusion of voices—“Hold up his head—Brandy now—Don’t choke him—How was+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 709 | it, old fellow? What happened to you? Tell us all about it!”+ | ^ This quote has no termination.+++Lint: Readability (127 priority)Message: |711 | Last came a little feeble, squeaking voice, (“That’s Bill,” thought Alice,)@@ -1313,6 +1401,27 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 865 | “Well, I’ve tried to say “How doth the little busy bee,” but it all came+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 866 | different!” Alice replied in a very melancholy voice.+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 868 | “Repeat, “You are old, Father William,’” said the Caterpillar.+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |884 | > “In my youth,” said the sage, as he shook his grey locks, “I kept all my limbs@@ -1746,6 +1855,35 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 1498 | March—just before he went mad, you know—” (pointing with his tea spoon at the+ 1499 | March Hare,) “—it was at the great concert given by the Queen of Hearts, and I+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 1504 | You know the song, perhaps?”+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 1508 | “It goes on, you know,” the Hatter continued, “in this way:—+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 1510 | > ‘Up above the world you fly, Like a tea-tray in the sky. Twinkle, twinkle—’”+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |1555 | great hurry; “and their names were Elsie, Lacie, and Tillie; and they lived at@@ -1783,6 +1921,20 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 1639 | went on: “—that begins with an M, such as mouse-traps, and the moon, and memory,+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 1641 | such a thing as a drawing of a muchness?”+ | ^ This quote has no termination.+++Lint: Readability (127 priority)Message: |1647 | This piece of rudeness was more than Alice could bear: she got up in great@@ -2538,6 +2690,22 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 2252 | “You may not have lived much under the sea—” (“I haven’t,” said Alice)—“and+ | ^ This quote has no termination.+ 2253 | perhaps you were never even introduced to a lobster—” (Alice began to say “I++++Lint: Formatting (255 priority)+Message: |+ 2253 | perhaps you were never even introduced to a lobster—” (Alice began to say “I+ | ^ This quote has no termination.+ 2254 | once tasted—” but checked herself hastily, and said “No, never”) “—so you can+++Lint: Spelling (63 priority)Message: |2259 | “Why,” said the Gryphon, “you first form into a line along the sea-shore—”@@ -2654,6 +2822,14 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 2306 | > “Will you walk a little faster?” said a whiting to a snail. “There’s a+ | ^ This quote has no termination.+ 2307 | > porpoise close behind us, and he’s treading on my tail. See how eagerly the+++Lint: Spelling (63 priority)Message: |2333 | “Yes,” said Alice, “I’ve often seen them at dinn—” she checked herself hastily.@@ -2676,6 +2852,22 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 2343 | here the Mock Turtle yawned and shut his eyes.—“Tell her about the reason and+ | ^ This quote has no termination.+ 2344 | all that,” he said to the Gryphon.++++Lint: Formatting (255 priority)+Message: |+ 2343 | here the Mock Turtle yawned and shut his eyes.—“Tell her about the reason and+ 2344 | all that,” he said to the Gryphon.+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |2343 | here the Mock Turtle yawned and shut his eyes.—“Tell her about the reason and@@ -2812,6 +3004,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 2425 | > “’Tis the voice of the Lobster; I heard him declare, “You have baked me too+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |2425 | > “’Tis the voice of the Lobster; I heard him declare, “You have baked me too@@ -2823,6 +3022,14 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 2427 | > Trims his belt and his buttons, and turns out his toes.”+ | ^ This quote has no termination.+ 2428 | >+++Lint: Readability (127 priority)Message: |2428 | >@@ -2901,6 +3108,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 2483 | > “Beautiful Soup, so rich and green, Waiting in a hot tureen! Who for such+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |2485 | > evening, beautiful Soup! Beau—ootiful Soo—oop! Beau—ootiful Soo—oop! Soo—oop@@ -3203,6 +3417,22 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 2513 | so good, that it made Alice quite hungry to look at them—“I wish they’d get the+ | ^ This quote has no termination.+ 2514 | trial done,” she thought, “and hand round the refreshments!” But there seemed to++++Lint: Formatting (255 priority)+Message: |+ 2513 | so good, that it made Alice quite hungry to look at them—“I wish they’d get the+ 2514 | trial done,” she thought, “and hand round the refreshments!” But there seemed to+ | ^ This quote has no termination.+++Lint: Readability (127 priority)Message: |2523 | The judge, by the way, was the King; and as he wore his crown over the wig,@@ -3328,6 +3558,21 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 2684 | “I’m glad I’ve seen that done,” thought Alice. “I’ve so often read in the+ | ^ This quote has no termination.+ 2685 | newspapers, at the end of trials, “There was some attempts at applause, which++++Lint: Formatting (255 priority)+Message: |+ 2687 | what it meant till now.”+ | ^ This quote has no termination.+++Lint: Readability (127 priority)Message: |2722 | “Well, if I must, I must,” the King said, with a melancholy air, and, after@@ -3384,6 +3629,35 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 2870 | > “They told me you had been to her, And mentioned me to him: She gave me a good+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 2886 | > from all the rest, Between yourself and me.”+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 2900 | spreading out the verses on his knee, and looking at them with one eye; “I seem+ | ^ This quote has no termination.+ 2901 | to see some meaning in them, after all. “—said I could not swim—” you can’t++++Lint: Formatting (255 priority)+Message: |+ 2902 | swim, can you?” he added, turning to the Knave.+ | ^ This quote has no termination.+++Lint: Readability (127 priority)Message: |2907 | “All right, so far,” said the King, and he went on muttering over the verses to@@ -3447,13 +3721,6 @@ Message: |-Lint: Formatting (255 priority)-Message: |- 2955 | it’s getting late.” So Alice got up and ran off, thinking while she ran, as well- | ^ This quote has no termination.---Lint: Readability (127 priority)Message: |2960 | But her sister sat still just as she left her, leaning her head on her hand,diff --git a/harper-core/tests/text/linters/The Great Gatsby.snap.yml b/harper-core/tests/text/linters/The Great Gatsby.snap.ymlindex ebd791337..d7b201cbc 100644--- a/harper-core/tests/text/linters/The Great Gatsby.snap.yml+++ b/harper-core/tests/text/linters/The Great Gatsby.snap.yml@@ -490,6 +490,20 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 334 | “All right,” said Daisy. ‘‘What’ll we plan?” She turned to me helplessly: ‘‘What+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 335 | do people plan?”+ | ^ This quote has no termination.+++Lint: Style (31 priority)Message: |394 | me again. ‘‘—And we’ve produced all the things that go to make civilization—oh,@@ -500,6 +514,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 395 | science and art, and all that. Do you see?”+ | ^ This quote has no termination.+++Lint: Readability (127 priority)Message: |416 | For a moment the last sunshine fell with romantic affection upon her glowing@@ -523,6 +544,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 452 | “Why—” she said hesitantly, ‘‘Tom’s got some woman in New York.”+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |464 | “It couldn’t be helped!” cried Daisy with tense gayety.@@ -570,6 +598,13 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 514 | “I’ll show you how I’ve gotten to feel about—things. Well, she was less than an+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |529 | the whole evening had been a trick of some sort to exact a contributary emotion@@ -613,6 +648,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 603 | square of light. As I started my motor Daisy peremptorily called: “Wait!+ | ^ This quote has no termination.+++Lint: Readability (127 priority)Message: |628 | Already it was deep summer on roadhouse roofs and in front of wayside garages,@@ -847,6 +889,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 711 | ‘‘How’s business?”+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |728 | stout, but she carried her flesh sensuously as some women can. Her face, above a@@ -1595,6 +1644,14 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 1408 | jazz, and between the numbers people were doing ‘‘stunts” all over the garden,+ | ^ This quote has no termination.+ 1409 | while happy, vacuous bursts of laughter rose toward the summer sky. A pair of+++Lint: Spelling (63 priority)Message: |1413 | trembling a little to the stiff, tinny drip of the banjoes on the lawn.@@ -3148,6 +3205,21 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 2126 | “The old Metropole,” brooded Mr. Wolfshiem gloomily. “Filled with faces dead and+ | ^ This quote has no termination.+ 2127 | gone. Filled with friends gone now forever. I can’t forget so long as I live the++++Lint: Formatting (255 priority)+Message: |+ 2134 | “‘Let the bastards come in here if they want you, Rosy, but don’t you, so help+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |2142 | “Sure he went.” Mr. Wolfshiem’s nose flashed at me indignantly. “He turned@@ -3168,6 +3240,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 2154 | “Oh, no,” he exclaimed, ‘‘this isn’t the man.”+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |2156 | “No?” Mr. Wolfshiem seemed disappointed.@@ -3452,6 +3531,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 2352 | change’ her mine!’”+ | ^ This quote has no termination.+++Lint: Readability (127 priority)Message: |2360 | But she didn’t say another word. We gave her spirits of ammonia and put ice on@@ -3465,6 +3551,14 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 2368 | around uneasily, and say: ‘‘Where’s Tom gone?” and wear the most abstracted+ | ^ This quote has no termination.+ 2369 | expression until she saw him coming in the door. She used to sit on the sand+++Lint: Spelling (63 priority)Message: |2373 | week after I left Santa Barbara Tom ran into a wagon on the Ventura road one@@ -3512,6 +3606,21 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 2437 | “I think he half expected her to wander into one of his parties, some night,”+ 2438 | went on Jordan, “but she never did. Then he began asking people casually if they+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 2444 | “‘I don’t want to do anything out of the way!’ he kept saying. ‘I want to see+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |2455 | hard, limited person, who dealt in universal scepticism, and who leaned back@@ -3523,6 +3632,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 2458 | busy and the tired.”+ | ^ This quote has no termination.+++Lint: Miscellaneous (55 priority)Message: |2462 | “Does she want to see Gatsby?”@@ -3555,6 +3671,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 2530 | “Oh, it isn’t about that. At least—’’ He fumbled with a series of beginnings.+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |2555 | “You wouldn’t have to do any business with Wolfshiem.” Evidently he thought that@@ -3683,6 +3806,13 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 2720 | terrible, terrible mistake.”+ | ^ This quote has no termination.+++Lint: Readability (127 priority)Message: |2737 | I walked out the back way—just as Gatsby had when he had made his nervous@@ -3726,6 +3856,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 2806 | was in he answered: ‘‘That’s my affair,” before he realized that it wasn’t an+ | ^ This quote has no termination.+++Lint: Style (31 priority)Message: |2823 | “I keep it always full of interesting people, night and day. People who do@@ -3760,6 +3897,14 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 2837 | closed the door of ‘‘the Merton College Library” I could have sworn I heard the+ | ^ This quote has no termination.+ 2838 | owl-eyed man break into ghostly laughter.+++Lint: Readability (127 priority)Message: |2840 | We went up-stairs, through period bedrooms swathed in rose and lavender silk and@@ -3790,6 +3935,14 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 2843 | doing liver exercises on the floor. It was Mr. Klipspringer, the ‘‘boarder.” I+ | ^ This quote has no termination.+ 2844 | had seen him wandering hungrily about the beach that morning. Finally we came to+++Lint: Style (31 priority)Message: |2844 | had seen him wandering hungrily about the beach that morning. Finally we came to@@ -4253,6 +4406,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 3296 | explained, ‘‘or any act of God.”+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |3316 | “Wha’?”@@ -4417,6 +4577,13 @@ Message: |+Lint: Formatting (255 priority)+Message: |+ 3505 | “Nope.” After a pause he added “sir’’ in a dilatory, grudging way.+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |3507 | “I hadn’t seen him around, and I was rather worried. Tell him Mr. Carraway came@@ -4674,6 +4841,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 3687 | “It seems that pretty soon the earth’s going to fall into the sun—or wait a+ | ^ This quote has no termination.+++Lint: Regionalism (63 priority)Message: |3690 | “Come outside,” he suggested to Gatsby, “I’d like you to have a look at the@@ -4706,6 +4880,14 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 3739 | “You resemble the advertisement of the man,” she went on innocently. ‘You know+ 3740 | the advertisement of the man—”+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |3809 | “Well, you take my coupé and let me drive your car to town.”@@ -5003,6 +5185,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 4062 | wasn’t any connection.”+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |4064 | “I used to know a Bill Biloxi from Memphis,” I remarked.@@ -5036,6 +5225,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 4075 | “Remember Biloxi,” Jordan warned her. ‘‘Where’d you know him, Tom?”+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |4077 | “Biloxi?” He concentrated with an effort. “I didn’t know him. He was a friend of@@ -5102,6 +5298,20 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 4134 | won’t seem so stupid to yourself. . . . Look at the mint!”+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 4175 | me.”+ | ^ This quote has no termination.+++Lint: Readability (127 priority)Message: |4185 | At this point Jordan and I tried to go, but Tom and Gatsby insisted with@@ -5124,6 +5334,21 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 4201 | sometimes”—but there was no laughter in his eyes—“to think that you didn’t+ | ^ This quote has no termination.+ 4202 | know.”++++Lint: Formatting (255 priority)+Message: |+ 4202 | know.”+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |4241 | “Not at Kapiolani?” demanded Tom suddenly.@@ -5571,6 +5796,14 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 4509 | “One goin’ each way. Well, she”—his hand rose toward the blankets but stopped+ 4510 | half way and fell to his side—“she ran out there an’ the one comin’ from N’York+ | ^ This quote has no termination.+++Lint: Miscellaneous (31 priority)Message: |4510 | half way and fell to his side—“she ran out there an’ the one comin’ from N’York@@ -5617,6 +5850,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 4511 | knock right into her, goin’ thirty or forty miles an hour.”+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |4523 | “No, but the car passed me down the road, going faster’n forty. Going fifty,@@ -5702,6 +5942,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 4679 | “Don’t tell me, old sport.” He winced. “Anyhow—Daisy stepped on it. I tried to+ | ^ This quote has no termination.+++Lint: Readability (127 priority)Message: |4739 | Toward dawn I heard a taxi go up Gatsby’s drive, and immediately I jumped out of@@ -6089,6 +6336,21 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 5151 | and walked to the rear window and leaned with his face pressed against it—“and I+ | ^ This quote has no termination.+ 5152 | said ‘God knows what you’ve been doing, everything you’ve been doing. You may++++Lint: Formatting (255 priority)+Message: |+ 5153 | fool me, but you can’t fool God!’”+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |5155 | Standing behind him, Michaelis saw with a shock that he was looking at the eyes@@ -6695,6 +6957,13 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 5498 | “Oh-h!” She looked at me over again. ‘‘Will you just— What was your name?”+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |5500 | She vanished. In a moment Meyer Wolfsheim stood solemnly in the doorway, holding@@ -6741,6 +7010,21 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 5522 | of mine up to Albany. We were so thick like that in everything”—he held up two+ 5523 | bulbous fingers—“always together.”+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 5523 | bulbous fingers—“always together.”+ | ^ This quote has no termination.+++Lint: Spelling (63 priority)Message: |5552 | For a moment I thought he was going to suggest a “gonnegtion,” but he only@@ -7143,6 +7427,27 @@ Suggest:+Lint: Formatting (255 priority)+Message: |+ 5723 | for me, and I felt a little dizzy for a while.”+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 5727 | “Oh, and do you remember”—she added—“a conversation we had once about driving a+ | ^ This quote has no termination.++++Lint: Formatting (255 priority)+Message: |+ 5728 | car?”+ | ^ This quote has no termination.+++Lint: Readability (127 priority)Message: |5743 | One afternoon late in October I saw Tom Buchanan. He was walking ahead of me