Enterprise Document IntelligenceCase studies← Back to the case
Proofreading · grammar

Grammar proofread on seeded text

7 patches proposed on a 6-line paragraph with 6 intentional errors.

Inline fixture — the paragraph and its seeded errors travel with the demo. LLM output varies ; assertions target the known typos + one subject-verb agreement fix.

INPUT — what we fed the pipeline

Fixture
inline (6 lines, 6 seeded errors)
Mode
grammar
Chunk size
30 lines/call
L1: This is a smpal example paragraph.
L2: We beleive that structured proofreading is important.
L3: The system needs to catches typos and grammer issues.
L4: There are severall errors intentionaly placed here.
L5: Each error are meant to be found and corrected.
L6: The demo verifies that the LLM proofread the text correctly.

PROCESSING — what the pipeline does

  1. build a line_df from the inline text (page_num=1, line_num=1..N)
  2. doc_proofread(line_df_override=line_df, mode=grammar, proofread_caller=llm_parse+_PatchList)
  3. for each patch : locate `before` substring in the source line → synthesize start/end offsets

OUTPUT — what came back

Patches proposed
7
L1: 'smpal' → 'sample'  — Corrected the spelling error 'smpal' to 'sample'. It is a clear typo with one correct form possible in context ('sample'). This is an unambiguous fix with high confidence (1.0).
L2: 'beleive' → 'believe'  — Corrected the misspelled word 'beleive' to 'believe'. Clear unambiguous spelling error.
L3: 'catches' → 'catch'  — Corrected verb agreement: 'needs to catches' should be 'needs to catch'.
L3: 'grammer' → 'grammar'  — Corrected the misspelled word 'grammer' to 'grammar'.
L4: 'severall' → 'several'  — Corrected the spelling error 'severall' to 'several'.
L4: ' intentionaly' → ' intentionally'  — Corrected 'intentionaly' to 'intentionally' (misspelling, missing 'l').
L5: 'are' → 'is'  — Corrected subject-verb agreement: 'Each error are' should be 'Each error is'.

VERDICT — assertions

7 PASS out of 7
PASSAt least 5 patches proposed
PASSFlags 'smpal' as a typo on L1
PASSCatches 'beleive' -> 'believe'
PASSCatches 'grammer' -> 'grammar'
PASSCatches 'severall' -> 'several'
PASSCatches 'intentionaly'
PASSAt least one subject-verb agreement fix

Angela Shi · medium.com/@angela.shi

Static demonstration (frozen data), not the live tool. For a tool on your own documents, contact us. · Case studies