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 🙏

© 2024 – Pkg Stats / Ryan Hefner

pedantjs

v1.0.1

Published

Find and fix bothersome punctuation and formatting errors in English texts.

Downloads

7

Readme

npm version travis cli downloads Join the chat at https://gitter.im/Decagon/pedant

Pedant

Pedant finds and fixes punctuation and formatting errors in English texts, that grammar checkers miss.

pedant.validate('The quick brown fox,jumped over the lazy dog')
// punctuation error at index 16 (missing space after comma):
// ...ck brown,fox jumped over...

Pedant finds small errors that spell checkers, grammar checkers, and style correctors usually miss. For example, if I start a quote "like this, then forget to end it--writing my readme in the meantime--pedant will let me know.

Sometimes, you might hit the spacebar twice, making an ugly double space. Or, when you hit. a period in the middle of a sentence, or a strange amount of periods the end.. or mix punctuation,. Pedant will let you know about that too.

Or, when you forget to add a space after a punctuation mark,like this. Overall, these mistakes can add up, and make your writing look unprofessional.

Roadmap

Here are some of the features that we are developing to add to Pedant (subject to change.) Note: any of these features can be turned on or off, depending on your style of writing:

Parenthesis

  • unnecessarily nested parenthesis ((like this for example))
  • parenthesis nested too deep (this sentence (yes, this one (the one that you are reading, right now) right here) is too complex because there are too many parenthesises (those bracket shaped things))))). We're not writing lisp code.
  • parenthesis nested, but nested parenthesis are not square brackets
  • placing periods outside of parenthesises ). and .)

Punctuation and Spacing

  • extra (or not enough) spaces after punctuation
  • too many punctuation symbols!!!
  • placing punctuation inside/outside of quote
  • usage of -- instead of an em-dash or another suitable alternative
  • warnings when using the greek semicolon and regular semicolon together
  • warnings when using unprintable zero-width characters
  • warnings when trying to center text by repeatedly using the spacebar (and option to automatically center)
  • warnings when adding more than two line breaks after a paragraph

Inconsistencies

  • inconsistencies when using the oxford comma
  • inconsistencies when a word is hyphenated and isn't (i.e merry-go-round and merry go round) and variants
  • when a word is Suddenly capitalized in one sentence not after a period, then suddenly it isn't
  • extra spaces in front of lists
  • extra spaces at the end of sentences, even if the next character isn't punctuation
  • inconsistencies when adding a period at the end of a list item, and keeping the others without one.

Quotes

  • usage of different spellings of the same word (e.g. color and colour), with option to allow quoted material to bypass
  • long quotes with missing author
  • warnings when adding or subtracting words from a quote after it has been written, without using the proper [inserted-word-here] notation*

Lists

  • empty list items (or an extra empty list item)
  • inconsistent capitalizatioN
  • warnings for starting the list with the same word many times
  • warnings when using the same list item multiple times in a row
  • warnings when using the same list item multiple times in a row, with small changes

Fonts

  • warnings when bolding, italizing, or underlining an entire word, except the last or first letter, or when it extends past the word into the space after it, like this which can be annoying

Mixed Languages and Cultures

  • support for other languages (e.g. French requires that a space is placed before punctuation like this !)
  • errors when using English quotes around a pure French or other language quote
  • warnings when specifying the type of currency, but using an incorrect symbol (it cost $10 pounds) and suggestions to use the currency symbol instead of the word, if both are used

People and Books

  • warnings when addressing someone by Ms., Mrs., or Miz., and then using the opposite gender pronoun in the next sentence, (excluding non-gender pronouns like "they" or "them") without mentioning any other names and vice-versa
  • warnings when addressing people by their first name if two or more people exist with the same first name but have different last names
  • warnings in novel mode when typing a character's name, but differs by one letter from another character's and is only mentioned once

Mathematical Notation and Precision

  • suggestions for spelling out natural numbers smaller than 10, and when starting a sentence with a number
  • warnings when mathematical notation contains (possibly) ambigious order of operations (e.g. 4*5+2-9/2)
  • warnings when mixing precisions with currency values (e.g. it cost $10 and the other thing cost $20.00), since both could be expressed with no cent values, since they are both zero