/numeronymize

Numeronymize is an Elisp extension for the Emacs text editor that enables a user to abbreviate words using numerical contraction numeronyms.

Primary LanguageEmacs LispGNU General Public License v3.0GPL-3.0

numeronymize

Numeronymize is an Elisp extension for the Emacs text editor that enables a user to transform words into numerical contraction numeronyms. This form of abbreviation takes the characters between the first and last characters in a word or phrase and replaces them with the number of characters between the first and last characters of the word or phrase. For example, the word "Kubernetes" would be abbreviated as "K8s" because there are 8 characters ("ubernete") between the starting "K" and the ending "s".

Some examples of (numerical contraction) numeronyms:

  • i18n --- internationalization
  • a11y --- accessibility
  • c14n --- canonicalization
  • o11y --- observability
  • a16z --- Andreesen Horowitz

More details can be found here.

Installation Instructions

  1. Download and save the file numeronymize.el to a local directory on the computer where you run Emacs.

  2. Locate your .emacs file in your home directory and add the following line:

(load "/path/of/local/directory/where/file/was/saved/into/numeronymize")

Note that you do not need the ".el" filename extension in the path, just the path of the local directory in which the downloaded file resides followed by the string "numeronymize".

If you do not have a .emacs in your home directory go ahead and create an empty file and add the line described above.

touch ~/.emacs; echo  '(load "/path/of/local/directory/where/file/was/saved/into/numeronymize")' >> ~/.emacs

How to use

TL;DR: M-x numeronymize

Details

  1. In a buffer or file select a region of text. that you want to abbreviate.
  2. Enter the Emacs command M-x numeronymize.
  3. The selected text will be replaced with a numerical contraction numeronym.

Questions?

You can always contact me with any questions at @igb@mastodon.hccp.org.