Color Words in Text
Color-code words in any text by part of speech - nouns, verbs, adjectives, adverbs, and more. Paste text and see instant visual grammar highlighting.
About
Misidentifying parts of speech leads to flawed sentence structure, weak writing, and failed grammar tests. Manual annotation is slow and error-prone past a few sentences. This tool applies automatic lexical classification to every word in your input using a heuristic dictionary of 1,500+ English words mapped to syntactic categories: nouns, verbs, adjectives, adverbs, prepositions, pronouns, conjunctions, articles, and numerals. Each category receives a distinct color, producing an instant visual parse of your text. The classification operates on isolated token matching. It does not resolve contextual ambiguity (e.g., "run" as noun vs. verb). Accuracy is approximately 75 - 85% on standard prose. Proper NLP parsers reach 97% but require server-side models.
Formulas
The tool tokenizes input text using a regular expression pattern that separates words from whitespace and punctuation:
Each token t is classified by dictionary lookup:
Where D is a dictionary mapping lowercase word forms to part-of-speech categories. If no match exists, suffix heuristics apply:
Where t = input token, D = part-of-speech dictionary containing 1,500+ entries. The suffix heuristic layer catches inflected forms not in the base dictionary. Statistical accuracy on standard English prose: 75 - 85%.
Reference Data
| Part of Speech | Abbreviation | Color | Role in Sentence | Example Words |
|---|---|---|---|---|
| Noun | NN | #5B9BD5 | Names a person, place, thing, or idea | dog, city, freedom, Alice |
| Verb | VB | #E06666 | Expresses action or state of being | run, is, become, think |
| Adjective | JJ | #93C47D | Modifies a noun | big, red, complex, silent |
| Adverb | RB | #E69138 | Modifies a verb, adjective, or another adverb | quickly, very, never, well |
| Pronoun | PRP | #C27BA0 | Replaces a noun | he, she, it, they, whom |
| Preposition | IN | #8E7CC3 | Shows relationship between elements | in, on, at, between, through |
| Conjunction | CC | #D5A439 | Connects clauses or words | and, but, or, because, although |
| Article | DT | #76A5AF | Determines specificity of noun | a, an, the, this, that |
| Numeral | CD | #6D9EEB | Represents a number or quantity | one, 42, third, million |
| Interjection | UH | #E67399 | Expresses emotion or exclamation | oh, wow, hey, ouch, bravo |
| Unknown | ?? | #B4A7D6 | Unclassified token | rare/domain-specific words |