3.4.0

How the AI Spell Checker Works

How Bareun's AI Korean spell checker works

Bareun does not hand a sentence to a single AI model and let it rewrite the whole thing. Deep learning models analyze the sentence, rules and dictionaries fix what they can, and where the answer depends on meaning a judging AI picks the candidate that fits the context. The result is then measured again on the same set of sentences with every release, and the numbers are published.

This page explains those three parts (deep learning analysis, the judging AI, and quality control) for readers without a development background. The pages listed at the end go deeper.

At a glance

graph LR
  A[Input sentence] --> B[Deep learning analysis<br>morphemes and parts of speech];
  B --> C[Rule and dictionary correction];
  C -- spots that depend on meaning --> D[Judging AI<br>picks among candidates];
  C -- words the rules cannot fix --> H[Another AI<br>proposes a correction];
  H --> D;
  D -- accepted --> F[Correction and its help note];
  D -- not confident --> G[Keep the original];
  C --> F;
StepWhat it doesWith what
Deep learning analysisSplits the sentence into morphemes and tags each with a part of speechTransformer-based segmentation and POS tagging models
Rules and dictionariesFix the errors that the orthography rules define clearly, and attach a help noteRules and dictionaries built from the Korean orthography regulations
Judging AIPicks the candidate that fits the contextAn LLM (large language model)
Quality controlMeasures every release again on the same sentences and publishes the resultA regression test set (20,135 sentences as of 3.4.0)

Deep learning analysis: read the sentence first

To fix spelling, you first need to know which words and endings a sentence is made of. Pairs such as 되/돼 or 안/않 cannot be told apart by the characters alone. You have to see what role they play in the sentence.

Bareun analyzes a sentence with Transformer-based deep learning models. A segmentation model splits the sentence into morphemes (the smallest units of meaning), and a POS tagging model assigns a part of speech to each piece. The segmentation model attaches one of 115 labels to every character, and 14 of those labels are used to flag errors. Some errors are therefore already located during analysis.

Measured one by one, the models in release 3.4.0 score 99.10% eojeol (space-delimited word unit) accuracy for segmentation and 99.38% morpheme POS accuracy. These values come from validation sentences held out from the training corpus, so they are higher than the accuracy of the two steps chained together in real analysis (97.84% eojeol accuracy). The method and the samples are described in Morphological analysis accuracy.

Rules and dictionaries: clear errors are fixed first

Frequent typos, non-standard words, and spacing that the regulations define clearly are fixed by rules and dictionaries.

CategoryExample
Frequent typo스빈다 → 습니다
Non-standard word글장이 → 글쟁이
Word spacing아름다운강산 → 아름다운 강산

Every correction comes with a help note. Depending on the category, it holds the reason, examples, and the article of the Korean orthography regulations. That is why the result can show why each change was made.

Rules run first for three reasons. They are fast, they give the same answer for the same input, and they can attach a reason grounded in the regulations.

Judging AI: picks the candidate that fits the context

Some spots cannot be decided by rules alone. Those go to the judging AI. The judging AI chooses, among fixed candidates, the one that fits the context. It does not write new text. When it is not confident, the original stays.

What the judging AI decidesExample
Words confused because they sound alike반드시 and 반듯이. The spelling alone cannot decide, so the meaning of the sentence is used
Ambiguous word spacing그다음 and 그 다음. Whether to join or split a compound noun is also decided here

Words the rules cannot fix take one more path. For a word missing from the dictionary or a word that could not be analyzed, another AI (an LLM) proposes a correction, and the judging AI then decides whether to accept it. The LLM's proposal is also compared with the original at the level of Hangul jamo (the letters inside each syllable) to measure how much it changed (the edit distance). A result that drifts too far from the original is discarded and the original stays. This guards against over-correction, a plausible-looking change that rewrites what the writer meant.

Rules and LLMs are split this way because their strengths and weaknesses are opposite.

ApproachStrengthsWeaknesses
Rules and dictionariesFast and consistent, can cite the regulationWeak on words outside the dictionary and on context-dependent errors
LLM aloneUnderstands context, strong on rare errorsSlow and costly, may change the original too much

An LLM is asked to propose a correction only for the eojeol the rules could not settle. That makes it faster than handing the whole sentence to an LLM. Spots whose answer depends on meaning, such as confusable words, are looked at again by the judging AI even after a rule has corrected them.

When it is not sure, it asks instead of changing

Not every spot is changed. Low-confidence spots, words missing from the dictionary, and derogatory words are left as written and flagged as "Needs check". The writer decides whether to change them.

Quality control: every release is measured on the same sentences

Changing a spell checker can improve one area while breaking another. So Bareun keeps a set of sentences with known answers (a regression test set) and measures every release against it.

  • Erroneous sentences found through user reports and internal reviews go into the test set, and they are not removed after the fix. If something that was fixed breaks again, it shows immediately.
  • Normal sentences that need no fix are included too. Leaving a correct sentence alone is also part of correction quality.
  • A result counts as correct only when it equals the expected answer. Where the norm allows two spellings, either one counts if the answer key lists the pair.

Release 3.4.0 gets 19,474 of 20,135 sentences right, which is 96.7% (measured in November 2026). It correctly fixed 95.8% of the 14,974 erroneous sentences and left 99.3% of the 5,161 normal sentences untouched. The test set keeps growing, so these numbers are as of 3.4.0. Results by category and the sentences it got wrong are published in the Spell checker accuracy benchmark.

How to read this number

This accuracy was measured on a test set that Bareun built itself. Bareun has been finding and fixing errors on these sentences, so the set favors Bareun. Do not read it as the accuracy you would get on text it has never seen.

What it cannot do yet

  • The weakest category is typos (83.0% as of 3.4.0). A typo caused by a wrong key press can only be resolved by reading the meaning of the sentence to see which character was intended. When it is not sure, it chooses not to change the text.
  • Many errors that require looking at the whole sentence (redundant meaning, ambiguity, excessive omission, and so on) are not handled yet. The check for subject-predicate agreement and translationese passives is off by default. In the web checker, turn on "Whole-sentence check" in the settings. In the API, turn it on as an option.
  • A comparison on sentences that Bareun did not write is future work.

Try it

Paste your text into the spell checker, and each correction comes with its help note.

Further reading

Frequently asked questions

Q. Does the AI rewrite the whole sentence?

No. Rules and dictionaries fix things first. Where the answer depends on meaning, the judging AI picks among candidates, and only for words the rules cannot fix does another AI propose a correction. The judging AI decides again whether to accept that proposal, and a result that drifts too far from the original is discarded.

Q. What does "AI" refer to in "AI spell checker"?

Two things. One is the Transformer-based deep learning models that split a sentence into morphemes and tag parts of speech. The other is LLMs: the judging AI that picks the candidate that fits the context, and the LLM that proposes a correction for words the rules cannot fix.

Q. How was the 96.7% accuracy measured?

It is Bareun 3.4.0 measured on a regression test set of 20,135 sentences. In 19,474 of them the correction equaled the expected answer. Bareun built the test set itself, so the set favors Bareun.

Q. Can I see why something was corrected?

Yes. Every correction comes with a help note. Depending on the category, it holds the reason, examples, and the article of the Korean orthography regulations.