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
build a line_df from the inline text (page_num=1, line_num=1..N)doc_proofread(line_df_override=line_df, mode=grammar, proofread_caller=llm_parse+_PatchList)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
| PASS | At least 5 patches proposed |
| PASS | Flags 'smpal' as a typo on L1 |
| PASS | Catches 'beleive' -> 'believe' |
| PASS | Catches 'grammer' -> 'grammar' |
| PASS | Catches 'severall' -> 'several' |
| PASS | Catches 'intentionaly' |
| PASS | At least one subject-verb agreement fix |
Angela Shi · medium.com/@angela.shi