I'm looking for a word (or small number of words) that is the general term for singularizing or pluralizing a word.
I've thought about "inflection"/"inflect", but inflection encompasses more than just modifying for number. From the Wikipedia page on Inflection:
In linguistic morphology, inflection (or inflexion) is a process of word formation, in which a word is modified to express different grammatical categories such as tense, case, voice, aspect, person, number, gender, mood, animacy, and definiteness.
Is there a word that encompasses both singularize and pluralize that is also more specific than inflection? Or is there a way to make "inflection" more specific, like "numerical/quantity inflection"?
The reason I'm asking is to find a good name for a function (programming) that takes a word and a number and returns the correct version of the word (either singular or plural). Building upon the package Pluralize.