cd /news/large-language-models/show-hn-fixing-grammar-and-spelling-… · home topics large-language-models article
[ARTICLE · art-30272] src=github.com ↗ pub= topic=large-language-models verified=true sentiment=↑ positive

Show HN: Fixing grammar and spelling using on-device Apple Foundation Model

A developer released an open-source tool that uses Apple's on-device Foundation Model to fix grammar and spelling on Apple Silicon Macs. The tool, built with Swift and exposed via a C function, runs locally without sending data to the cloud. It demonstrates practical use of Apple's on-device language model for writing tasks.

read1 min views1 publishedJun 16, 2026

Grammar and spelling-fixing tool using Apple's Foundation Model, run locally on any Apple Silicon Macs.

Build the binary with:

$ make

You will need to have Xcode installed to compile the Swift LLM bridge. The output of the build process is a grammar-fix

binary that you can run.

Run the command and pass the input string:

$ /grammar-fix "he eat two apple"

For a while now, Apple devices shipped with an on-device language model. The model can be used for some writing tasks, but it's only accessible for Swift via the Foundation Models framework.

This project bridged the API and expose it as a C function, so we can use it for simple tasks like fixing grammar.

── more in #large-language-models 4 stories · sorted by recency
── more on @apple 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-fixing-gramm…] indexed:0 read:1min 2026-06-16 ·