Grammar Pattern Checker — Mistake Detector & Corrections
Check Grammar Patterns
Paste or type your text below. The checker scans for six common grammar patterns and highlights them inline with correction suggestions. Everything runs in your browser — nothing is sent to a server.
Highlighted Text
Error Category Breakdown
Issues & Suggestions
What Is a Grammar Pattern Checker?
A grammar pattern checker is a text analysis tool that scans your writing for structural grammar issues that weaken clarity, conciseness, or correctness. Unlike spell checkers that flag individual misspelled words, a pattern checker looks at how words relate to each other within and across sentences. It identifies constructions like passive voice, dangling modifiers, subject-verb disagreement, comma splices, run-on sentences, and misplaced modifiers, then highlights each occurrence with a color code and provides a specific correction suggestion.
The value of pattern-based checking over simple spell-checking is significant. Most grammar errors are not about individual words but about how those words are arranged. The sentence "The report was wrote by the team" contains a correct subject, a correct verb form (in isolation), and a correct prepositional phrase, yet the sentence is grammatically wrong because "wrote" should be "written" in the passive construction. Pattern detection catches these structural issues that word-level tools miss entirely.
This tool implements six detection categories chosen because they represent the most frequent grammar issues in professional and academic writing. Research from the Educational Testing Service (ETS) and multiple corpus studies of student and professional writing consistently identify passive voice overuse, comma splices, and run-on sentences as the three most common structural errors in English prose. The remaining three categories, dangling modifiers, subject-verb disagreement, and misplaced modifiers, round out the most impactful patterns that affect readability and professionalism.
How Pattern Detection Works
The detection engine processes your text in four stages. First, the text is split into individual sentences using punctuation boundaries (periods, exclamation marks, question marks) while respecting common abbreviations like "Mr.", "Dr.", "U.S.", and decimal numbers. Second, each sentence is tokenized into words while preserving position information so that matches can be highlighted in the original text. Third, each sentence is tested against the six pattern detectors in sequence, with each detector using a combination of regular expressions and rule-based heuristics to identify potential issues. Fourth, all detected issues are compiled into a results panel showing the highlighted text, an error category breakdown with counts, and individual issue cards with correction suggestions.
Passive voice detection scans for combinations of a "to be" auxiliary (am, is, are, was, were, been, being, get, got, gotten) followed within three words by a past participle. Past participles are identified by their morphological form: regular verbs ending in "-ed" (e.g., "completed," "reviewed"), and a curated list of approximately 120 irregular past participles (e.g., "written," "broken," "chosen," "driven," "forgotten"). The detector also checks for the optional "by" phrase that typically follows passive constructions. When detected, the suggestion identifies the likely agent and proposes an active-voice rewrite.
Dangling modifier detection looks for sentences that begin with a participial phrase (a phrase starting with a present participle like "running" or "having" or a past participle like "exhausted" or "confused") followed by a comma, where the subject of the main clause does not logically perform the action described by the participle. The classic example is "Walking down the street, the trees were beautiful," where "the trees" are not walking. The detector flags these openings and suggests either rewriting the main clause to include the correct agent or converting the participial phrase into a full subordinate clause.
Subject-verb disagreement detection checks whether singular subjects are paired with plural verb forms and vice versa. This includes checking indefinite pronouns (everyone, each, neither, either, nobody) which are grammatically singular but often paired with plural verbs in informal speech. The detector also catches common traps like collective nouns, "there is/are" constructions, and subjects separated from their verbs by prepositional phrases ("The quality of the images are poor" should be "is poor").
Comma splice detection identifies two independent clauses joined by only a comma without a coordinating conjunction (for, and, nor, but, or, yet, so). The detector looks for patterns where a comma is followed by a pronoun or noun phrase that begins a new independent clause. When found, it suggests three fixes: adding a coordinating conjunction, replacing the comma with a semicolon, or splitting into two sentences.
Run-on sentence detection flags sentences that exceed a word count threshold (typically 40-50 words) or that contain two or more independent clauses joined without any punctuation or conjunction. Extremely long sentences are flagged even if technically correct because they impair readability. The suggestion recommends splitting the sentence at a logical break point or adding appropriate punctuation.
Misplaced modifier detection looks for adverbs and adjective phrases that are positioned ambiguously within a sentence, creating confusion about what they modify. Common triggers include "only," "just," "nearly," "almost," "even," and "merely" when they appear far from the word they logically modify. The suggestion recommends repositioning the modifier directly before or after the word it is intended to modify.
Understanding the Color-Coded Highlights
Each grammar pattern category is assigned a unique color for instant visual identification. Indigo (#818CF8) marks passive voice constructions, the most common pattern in formal writing. Lavender (#d2a8ff) marks dangling modifiers, which often appear at sentence beginnings. Red (#f85149) marks subject-verb disagreement, chosen for its urgency since these are clear grammatical errors. Gold (#d29922) marks comma splices, a punctuation-level issue. Green (#3fb950) marks run-on sentences, typically the longest highlighted spans. Purple (#a56eff) marks misplaced modifiers, which usually involve single words or short phrases.
The highlighted text view preserves your original formatting while adding background colors and bottom borders to flagged spans. Hovering over any highlighted span shows a tooltip with the category name and a brief correction hint. Below the highlighted text, the issue list provides full correction suggestions for each detected pattern instance, ordered by their position in the text.
When Grammar Patterns Are Acceptable
Not every flagged pattern is an error. Passive voice is standard in scientific writing, legal documents, and news reporting where the agent is unknown or deliberately omitted. Long sentences are a feature of literary prose when used intentionally for rhythm or effect. Comma splices appear in some fiction styles for pacing. The goal of this tool is awareness, not rigid enforcement. Use it to see your patterns, then decide which ones serve your purpose and which ones you should revise.
Professional editors typically recommend that passive voice should constitute no more than 10-15% of sentences in general-audience writing. Academic writing may tolerate up to 25-30%. Business communication should aim for under 10%. The error category breakdown gives you the exact percentage so you can compare against these benchmarks and make data-driven editing decisions.
Privacy and Performance
This grammar pattern checker processes everything client-side in your browser using JavaScript. No text data is transmitted to any server. The analysis typically completes in under 50 milliseconds for texts under 5,000 words. For longer documents, processing may take up to 200 milliseconds. The regex-based detection is approximate; it catches the majority of common pattern instances but cannot match the accuracy of a full natural language parser. For deeper analysis, the main Enhio text analyzer provides readability scores and sentence-level diagnostics. For image-related tasks, Krzen offers compression tools. Developers building NLP pipelines may find HeyTensor's tensor utilities useful for tokenization workflows.
Need Full Text Analysis?
The main Enhio tool adds readability scores, sentence analysis, tone detection, and SEO keyword checking.
Open Full AnalyzerFrequently Asked Questions
What grammar patterns does this tool detect?
This tool detects six common grammar patterns: passive voice constructions, dangling modifiers, subject-verb disagreement, comma splices, run-on sentences, and misplaced modifiers. Each issue is highlighted inline with a unique color and accompanied by a suggested correction or rewriting strategy. The patterns were chosen based on research showing they represent the most frequent structural errors in English writing.
How does passive voice detection work?
The tool scans for forms of "to be" (is, was, were, been, being, are, am, get, got) followed within a few words by a past participle. Past participles are identified by their endings (-ed, -en, -ght) or matched against a list of approximately 120 common irregular forms. When this pattern is found, the phrase is flagged as passive voice, and the suggestion recommends rewriting with an active subject performing the action directly.
Is passive voice always wrong?
No. Passive voice is appropriate when the agent is unknown ("The window was broken overnight"), when the agent is less important than the action ("The vaccine was approved by the FDA"), or in scientific writing where objectivity is conventional ("The samples were tested at 200 degrees Celsius"). This tool flags passive constructions so you can make an informed choice, not to eliminate them entirely. Aim for under 15% passive sentences in general writing.
What is a comma splice and how do I fix it?
A comma splice occurs when two independent clauses are joined with only a comma instead of a conjunction or semicolon. For example: "The report is finished, it needs review." Fix options include adding a coordinating conjunction ("The report is finished, and it needs review"), using a semicolon ("The report is finished; it needs review"), making one clause subordinate ("Since the report is finished, it needs review"), or splitting into two sentences.
Is my text data private when using this grammar checker?
Yes. This grammar pattern checker runs entirely in your browser using client-side JavaScript. Your text is never sent to any server, never stored, and never shared. There are no cookies, no analytics trackers, and no accounts. You can verify this by monitoring the Network tab in your browser's developer tools while using the tool.