/ok-plural.el

Pluralize English nouns in Emacs.

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

ok-plural.el

Pluralize English nouns in Emacs.

The ok-plural.el package wraps Aaron Hawley's plural.el to programatically pluralize an English noun in Emacs Lisp.

The enhancement over the original version, which implement rudimentary pluralization using simple logic and dictionary, is that this package uses Emacs's ispell to check if the pluralized word actually exists.

Install

(use-package ok-plural
  :straight (:host github :repo "okomestudio/ok-plural.el"))

Usage

(require 'ok-plural)

(ok-plural-pluralize "apple")      ; -> "apples"
(ok-plural-pluralize "foobarbaz")  ; -> nil (the word doesn't exist)