Skip to main content
Back to Showcase

PaperReview: Grading Handwritten English Essays Locally on a Mac

Author:MnagalahModel:MiniCPM-OCR 1.0、MiniCPM-OCR Jev、MiniCPM5-2B

Reads and grades handwritten English essays line by line on a Mac

PaperReview is a macOS app for teachers to review handwritten English essays. It transcribes handwriting, lets teachers check the transcript against the original, and performs basic language review. Suggestions are linked to their positions in the original text, teachers confirm how each one is handled, and assignments and review records are saved.

Recognition and review run entirely on the Mac, so student essays never leave the machine.

Note

PaperReview focuses on basic English proofreading (spelling, grammar, punctuation, capitalization), not content-level scoring. Model output is a suggestion; teachers should confirm the final result.

Features​

  • Assignment recognition: import essay photos in JPEG, PNG, HEIC or TIFF, with support for single pages and left/right double pages in one photo. Original photos and transcripts are kept.
  • Source checking: compare the photo with the recognized text, locate issues by their original position, and proofread or re-review manually.
  • Language review: check spelling, grammar, punctuation and capitalization, producing suggestions with source quotes and positions.
  • Review management: accept or dismiss suggestions one by one, with restore, undo and redo; teacher decisions and completion status are saved.
  • Export: export recognized text as Markdown, or a document with annotations and their status.

How the Three Models Work Together​

All models run locally via llama.cpp:

ModelFormatRole
MiniCPM-OCR 1.0F16Full-page transcription and word-region recognition
MiniCPM-OCR JevQ4_K_MScores consistency between candidate text and the image to assist review
MiniCPM5-2BQ4_K_MGenerates context-aware basic language review suggestions

The pipeline runs image preprocessing → full-page transcription → per-word verification → image-text review → language review. The app picks recognition candidates based on verification results and retries automatically when results are unstable, up to three rounds.

For language review, MiniCPM5-2B first writes an internal correction draft, which is diffed against the original transcript so each suggestion maps to its text range. Recognized text, model suggestions and teacher decisions are recorded separately, and the original transcript is always preserved.

Implementation​

The app is built with Swift 6.2, SwiftUI and AppKit, targets macOS 14+, and current releases are for Apple Silicon Macs.

ModuleResponsibility
PaperReviewUI, image processing, assignment flow and storage
PaperReviewCoreText structure, source anchoring, annotation state, quality checks and model interfaces
PaperReviewLocalModelsLocal model configuration, download, service lifecycle and inference

Image processing uses Apple Vision and Core Image for page detection, text-region location, perspective correction and scan enhancement. Recognized text is tied back to the image via line and word coordinates.

Model services listen only on the loopback address and are called over local HTTP; downloads support pause and resume. Assignment data is stored by default in ~/Library/Application Support/PaperReview/Assignments/, including original images, processed images and JSON records.

Project info

Author
Mnagalah