npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

textlint-rule-ukraine

v1.3.0

Published

textlint rule that flags inappropriate transliterations of Ukrainian place/person names and auto-fixes them

Downloads

1,070

Readme

textlint-rule-ukraine

StandWithUkraine NPM Downloads NPM Version NPM Last Update NPM License PRs Welcome

Pipeline CodeQL Known Vulnerabilities REUSE status

A textlint rule that detects and fixes russified spellings of Ukrainian geographical and personal names.

The corrections database is sourced from the SpellingUkraine project (MIT) and other sources.

Install

npm install --save-dev textlint textlint-rule-ukraine

Usage

Add the rule to your .textlintrc:

{
  "rules": {
    "ukraine": true
  }
}

Lint your Markdown files:

npx textlint docs/**/*.md

Auto-fix in place:

npx textlint --fix docs/**/*.md

Replacements are case-preserving:

| Input | Output | | ------------ | ----------- | | Bahmut | Bakhmut | | BAHMUT | BAKHMUT | | bahmut | bakhmut | | Artyomovsk | Artemivsk |

Text inside fenced code blocks and inline backtick spans is never touched.

Only three casing patterns are detected: ALL CAPS, all lower, and Title case. Mixed or irregular casing like aRTyOMovsK is left in canonical form (Artemivsk) instead of trying to mirror a garbled input — the fix is always clean Ukrainian orthography.

Options

The dictionary is split into tagged groups. geo is on by default; names and extra are opt-in.

| Option | Default | Covers | | --------------------- | -------- | ----------------------------------------------------------- | | geo | true | Place names (cities, regions, rivers) | | names | false | Personal names (first names, public figures) | | extra | false | Opinionated corrections (e.g. lowercase russia) | | dictionaryOverrides | [] | Additional entries appended at runtime (see below) |

To enable personal names checking:

{
  "rules": {
    "ukraine": { "names": true }
  }
}

To enable all groups:

{
  "rules": {
    "ukraine": { "names": true, "extra": true }
  }
}

To disable place names (e.g. when only personal names matter):

{
  "rules": {
    "ukraine": { "geo": false, "names": true }
  }
}

dictionaryOverrides

Append entries to the dictionary at runtime without patching data/dictionary.json inside node_modules. Each entry follows the same shape as the built-in dictionary and supports the same fields, including the exact flag (see Dictionary):

{
  "rules": {
    "ukraine": {
      "dictionaryOverrides": [
        { "wrong": ["Novoiavorivsk"], "correct": "Novoiavorivsk", "id": "novoiavorivsk", "tags": ["geo"] }
      ]
    }
  }
}

If an override declares the same wrong string as a built-in entry, the override wins (last-write-wins).

Dictionary

All entries live in data/dictionary.json. Each entry has the form:

{ "wrong": ["Bahmut", "Bahmoot"], "correct": "Bakhmut", "id": "bakhmut", "tags": ["geo"] }

By default replacements are case-preserving (Bahmut→Bakhmut, BAHMUT→BAKHMUT). Add "exact": true to always output correct verbatim regardless of input casing:

{ "wrong": ["Russia"], "correct": "russia", "id": "example", "exact": true, "tags": ["extra"] }

Override entries follow the same format — use tags to control which option group activates them.

Contributing

Dictionary improvements go directly in data/dictionary.json. Rule improvements (casing logic, AST handling, performance) go in src/.

License

MIT