Miss any of our Open RFC calls?Watch the recordings here! »


2.3.5 • Public • Published


Typopo is a JavaScript library that saves your time by fixing frequent typographic errors in English, German, Slovak, Czech, and Rusyn language. Make a proofreading quicker by fixing the common typos first.


Fixes punctuation:

  • double quotes (and accidentally-typed punctuation related to the use of double quotes)
  • double primes
  • single quotes (with assumption they are used as secondary and in pairs)
  • single primes
  • apostrophes
  • hyphens & dashes
    • between words with a proper spacing per locale
    • between ordinal and cardinal numbers
    • within date
    • between percentage range
  • period & ellipsis

Fixes whitespace characters:

  • removes extra white spaces
    • at the beginning and the end of sentences (leading and trailing spaces)
    • between words and paragraphs
    • before or after a punctuation
    • around an ellipsis and an aposiopesis (where applicable)
    • between a number sign (#) and a number
    • before ordinal indicators (e.g. 1 st → 1st)
  • removes empty lines
  • fixes non-breaking spaces
    • removes nbsp between multi-letter words
    • adds nbsp
      • after one-word prepositions
      • around “×”
      • after “&”
      • after cardinal numbers
      • after ordinal numbers
      • ordinal Roman numerals
      • after name initials (i.e. Philip K. Dick)
      • after common single-word and multiple-word abbreviations
    • replaces space with nbsp before % (percent), ‰ (per mille), ‱ (permyriad)

Fixes words:

  • accidental uPPERCASE
  • spelling of e.g., i.e., a.m. and p.m.
  • ISSN and ISBN formatting

Fixes symbols:

  • multiplication sign (×)
  • section sign (§)
  • copyright (©)
  • sound recording copyright (℗)
  • registered trademark (®)
  • trademark (™)
  • plus-minus sign (+-, -+ → ±)
  • square and cube exponents (e.g. 100 µm² → 100 µm², 50 km³ → 50 km³)


Online app — https://typopo.tota.sk/

Use (especially) when:

  • you’re a typesetter, who wants to proofread the raw text before pasting into DTP software (e.g. InDesign)
  • you’re a developer, who doesn’t want to escape quotes in User Interface messages or bother with whitespace characters
  • you just want your email or blog post to be typographically correct

alt fix typos with typopo

JS library

  • Download dist/typopo.min.js and include it in your web application or CMS to fix typos on demand, automatically or after the web page is loaded.

NPM package

Include Typopo as an NPM package in your web project:

npm install typopo


fix typos in given text and locale:

fixTypos(string, locale)

supported languages:

  • "en-us" (English, default)
  • "rue" (Rusyn)
  • "sk" (Slovak)
  • "cs" (Czech)
  • "de-de" (German)

optional configuration:

fixTypos(string, locale, configuration)

example of configuration:

configuration = {
    removeLines : true,

(“removeLines” is the only available configuration option for now)


Iʼd love to hear:

  • how do you use or plan to use Typopo
  • what you are missing
  • when you expect Typopo is not fixing typos as it should; in such cases following example would help the most:
    • your input: [provide your text example here]
    • expected output: [show how you want your example to be corrected]

In any case, feel free to drop me a line at typopo@tota.sk.


Licensed under MIT license. (See LICENCE.TXT.)

Special thanks

  • @Viclick for adjusting the repo for modularisation (2.0.0)
  • @tomashruby for consultation on architecture (2.0.0)
  • @skurzinz for consultation & test on German typographic rules (2.2.0)
  • Filip Blažek for consultation on typography rules
  • @vit-svoboda for fixing the package to run in Node.js projects (2.3.1)


npm i typopo

DownloadsWeekly Downloads






Unpacked Size

264 kB

Total Files


Last publish


  • avatar