惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
MyScale Blog
MyScale Blog
Recent Announcements
Recent Announcements
N
Netflix TechBlog - Medium
GbyAI
GbyAI
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
Martin Fowler
Martin Fowler
腾讯CDC
大猫的无限游戏
大猫的无限游戏
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
J
Java Code Geeks
WordPress大学
WordPress大学
P
Proofpoint News Feed
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I Built a Free AI Grammar Checker That Runs Entirely in t...
dayu2333-jinyul · 2026-06-26 · via DEV Community

dayu2333-jinyul

I Built a Free AI Grammar Checker That Runs Entirely in the Browser

A few months ago I got tired of copy-pasting my writing between five different tools — Grammarly for grammar, Hemingway for readability, some word counter for stats. So I built AI Grammar Checker — a single tool that does all of that in one shot, for free, with no signup.

What it does

You paste English text, hit check, and get back:

  • Sentence-by-sentence grammar corrections with explanations
  • Style polish — passive voice, weak adverbs, wordy phrases flagged
  • Flesch readability score so you know if your text is actually readable
  • Hemingway-style highlights — hard sentences, very hard sentences, adverb count
  • CEFR level (A1–C2) so non-native speakers know where they stand
  • Tone detection — formal, casual, neutral

All client-side except the AI check call. No server stores your text.

The stack is stupidly simple

HTML + vanilla JS + CSS
↓
DeepSeek API (OpenAI-compatible, $0.27/million tokens)
↓
Result rendered directly in the DOM

No React. No Next.js. No build step. Just app.js, style.css, and index.html. The "backend" is a tiny Cloudflare Worker that proxies the DeepSeek API call so the API key stays server-side.

Here's roughly how the grammar check works:

async function runGrammarCheck(text, intensity) {
  const systemPrompt = `You are a professional English editor.
Analyze the text sentence by sentence.
For each issue, return: original text, corrected text, explanation.
Also return: readability score, CEFR level, tone.`;

  const response = await fetch('/api/deepseek', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      model: 'deepseek-chat',
      messages: [
        { role: 'system', content: systemPrompt },
        { role: 'user', content: text }
      ],
      temperature: 0.3
    })
  });

  return response.json();
}

The intensity slider is the interesting bit — it adjusts the system prompt to be more or less aggressive about suggesting changes. At low intensity it only flags actual errors. At high intensity it rewrites for style too.

Why DeepSeek over OpenAI

Three reasons:

  1. Cost. DeepSeek is roughly 1/10th the price of GPT-4o for comparable quality on grammar tasks. At the free tier usage levels, my API bill is literally under $2/month.

  2. Quality on structured output. I tested both on the same 50-sample test set (emails, essays, blog posts). DeepSeek caught 91% of errors vs GPT-4o's 93%. The 2% gap isn't worth 10x the cost.

  3. No content moderation false positives. This is the one nobody talks about. OpenAI's moderation API sometimes flags academic writing about medical or legal topics. DeepSeek just checks the grammar.

What I'd do differently

  • Offline mode. The Hemingway stats (passive voice, reading time, word count) are computed locally. The grammar check needs the API. I'd like to bundle a small on-device model via WebLLM eventually.

  • Better mobile UX. The tool works on mobile but the text area + results layout isn't great on narrow screens. Bootstrap or Tailwind would've helped but I wanted zero dependencies.

  • API key flow. Right now users bring their own DeepSeek key. New DeepSeek users get 5M free tokens, which covers a LOT of grammar checks. But the UX of pasting an API key is friction. Considering a free tier with a shared key + rate limiting.

Try it

grammaraicheck.com

Completely free, no signup, no email. If you write in English regularly — especially if you're a non-native speaker — I'd love feedback on what's missing.

Also have a comparison page if you're curious how it stacks up against Grammarly, ProWritingAid, and others: Best AI Grammar Checkers 2026.