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

coc-writing

v0.3.5

Published

WordNet-powered dictionary and thesaurus completion for coc.nvim

Readme

coc-writing

WordNet-powered dictionary, definition, and thesaurus tools for coc.nvim.

coc-writing is built for writing-heavy buffers: Markdown, plain text, TeX, and commit messages. It provides dictionary completion with definitions, intentional dictionary/thesaurus search commands, and optional inline thesaurus completion.

Features

  • Dictionary completion from WordNet lemmas.
  • Markdown documentation in Coc's completion detail window.
  • Definition preview for the word under the cursor.
  • Intentional dictionary and thesaurus pickers.
  • Fuzzy prefix correction for common typos such as sincers -> sincere.
  • Background warming for the heavier spelling correction index.
  • Configurable thesaurus breadth.

Install

From npm:

:CocInstall coc-writing

From a local checkout:

npm install
npm run build
npm pack --cache /private/tmp/coc-writing-npm-cache

Then install the generated tarball in Neovim:

:CocInstall /Users/charlie/Projects/coc-writing/coc-writing-0.2.0.tgz
:CocRestart

Commands

:CocCommand coc-writing.definition
:CocCommand coc-writing.searchDictionary
:CocCommand coc-writing.searchThesaurus
:CocCommand coc-writing.health
:CocCommand coc-writing.warmSpellingIndex

Lists

:CocList writingDictionary
:CocList writingThesaurus sincere

List rows use this shape:

word | gloss
~fuzzy match | gloss

Completion Sources

Dictionary completion is enabled by default.

Thesaurus inline completion is disabled by default because synonym replacement is usually more intentional than ordinary word completion. Use coc-writing.searchThesaurus or :CocList writingThesaurus <word> unless you want thesaurus suggestions while typing.

Example:

{
  "coc-writing.dictionary.filetypes": ["text", "markdown", "gitcommit"],
  "coc-writing.thesaurus.enable": true,
  "coc-writing.thesaurus.filetypes": ["markdown"],
  "coc-writing.thesaurus.mode": "focused"
}

Performance

Startup loads only the WordNet index files first. The larger spelling correction index is warmed in the background after startup, so the extension is usable quickly while whole-word spelling fallback becomes ready shortly after.

Relevant settings:

{
  "coc-writing.dictionary.fuzzy.warmSpellingIndex": true,
  "coc-writing.dictionary.fuzzy.warmSpellingDelay": 1000
}

Use :CocCommand coc-writing.health to inspect runtime state:

loaded:           true
lemmas indexed:   147,306
fuzzy cached:     0
spelling built:   true
spelling keys:    3,254,113

Run :CocCommand coc-writing.warmSpellingIndex to build the spelling index manually.

Thesaurus Modes

{
  "coc-writing.thesaurus.mode": "focused"
}
  • focused: &, ^ relations only. Usually less noisy.
  • broad: &, ^, + relations. Adds derivationally related forms.
  • custom: use coc-writing.thesaurus.similarityPointers.

custom defaults to:

{
  "coc-writing.thesaurus.similarityPointers": ["&", "^", "+"]
}

Pointer Symbols

Definition previews can show selected WordNet relations with coc-writing.definitionPointers.

Default:

{
  "coc-writing.definitionPointers": ["!", "&", "^"]
}

Common symbols:

| Symbol | Meaning | | --- | --- | | ! | Antonym | | & | Similar to | | ^ | Also see | | @ | Hypernym | | ~ | Hyponym | | + | Derivationally related form |

Configuration Reference

| Setting | Default | Purpose | | --- | --- | --- | | coc-writing.enable | true | Enable the extension. | | coc-writing.filetypes | ["markdown", "text", "tex", "plaintex", "gitcommit"] | Shared source filetypes. | | coc-writing.dictionary.enable | true | Enable dictionary completion. | | coc-writing.dictionary.filetypes | [] | Override dictionary filetypes; empty inherits shared filetypes. | | coc-writing.dictionary.minInputLength | 3 | Minimum typed length for dictionary completion. | | coc-writing.dictionary.maxItems | 50 | Maximum dictionary completion items. | | coc-writing.dictionary.fuzzy.enable | true | Enable fuzzy prefix and spelling fallback. | | coc-writing.dictionary.fuzzy.minInputLength | 5 | Minimum typed length for fuzzy fallback. | | coc-writing.dictionary.includeMultiword | false | Include space-separated WordNet phrases in completion. | | coc-writing.thesaurus.enable | false | Enable inline thesaurus completion. | | coc-writing.thesaurus.filetypes | [] | Override thesaurus filetypes; empty inherits shared filetypes. | | coc-writing.thesaurus.mode | "custom" | Use focused, broad, or custom relation sets. | | coc-writing.thesaurus.maxItems | 50 | Maximum thesaurus items. | | coc-writing.thesaurus.similarityDepth | 2 | Relation traversal depth. | | coc-writing.definitionMaxSynsets | 8 | Maximum senses shown in docs/previews. |

Development

npm install
npm test
npm run build
./node_modules/.bin/tsc --noEmit
npm pack --dry-run --json --cache /private/tmp/coc-writing-npm-cache

Acknowledgements

This extension uses the WordNet 3.0 database from Princeton University.

The completion design is inspired by blink-cmp-words.

License

MIT