Deriving a word for the activity of using a tool from the tool name ("grep")

In a discussion that involves talking about the program named "grep", the activity of applying the program to some data is often referred to as "greping".

I was writing - still informally - about such a discussion, and was unsure how to write that word, and why.

  • The activity of using or applying the tool "grep" is called "greping" when speaking. How to write this word, and why?

    • What about the variants
      • 'greping'
      • 'grepping'
      • 'grep'ing'
      • 'grep-ing'
  • Are there rules to derive such a word, at least partially?



(This question was motivated by
Why is tac file | grep foo' (piping) faster than grep foo < <(tac file)' (process substitution)?,
specifically by the line
"This question was motivated by "Reverse grepping", about greping a huge file from bottom up.".)


Solution 1:

The words like that will try to follow the current word-form rules in similar words. (to trap - trapping). The word "grep" is already in some dictionaries and it follows this theory:

verb (greps, grepping, grepped) [with object]:

Search for (a string of characters) using grep.

Solution 2:

I was taught in elementary school that if a syllable ends with a vowel, the vowel is normally long, while if it ends with a consonant, the vowel is short. Also that if there is a vowel followed by one consonant in the middle of a word, the consonant is part of the next syllable, while if a vowel is followed by two consonants (that do not work together to make a single sound, like "th"), that the first consonant ends the first syllable and the second consonant begins the second syllable.

Thus: "hatter" - syllables are "hat" and "ter", "a" is short.

"hater" - syllables are "ha" and "ter", "a" is long.

(Yes, there are lots of exceptions, but I was taught this as the general rule.)

As a consequence of this, if a word ends with a single vowel followed by a single consonant, than to keep the vowel short, you must double the consonant when adding -ed or -ing.

Example: "fit" becomes "fitted" and "fitting".

There is no need to double a consonant if the word already ends in two consonants. Like "list" becomes simply "listed" and "listing".

So by these conventional rules, "grep" would become "grepped" and "grepping". If you wrote "greped", we would make the first "e" long, like "greep'd".

Solution 3:

This isn't a very technical answer, but googling "grepping" returns 354,000 results. Googling "greping" only returns 47,300 results and suggests that you meant "grepping" instead. It seems that "grepping" is the correct usage.

Solution 4:

Hyphenated suffixes are usually an idiosyncratic choice that mainly serves stylistic purposes; as far as grammar is concerned, hyphens are normally reserved for words where the suffix is a proper noun or itself a large word (three or more syllables), although there is no consensus and there are exceptions to the rule.[1]

For me there is no need to put quote marks around it either. There is an established body of similarly-derived words in reputable dictionaries by now. That is, names of digital tools used as verbs.

Both Merriam-Webster & Oxford: photoshop, google
Oxford only: skype, even facebook(v.) !!

The only thing left to consider is whether to duplicate the last letter of the root. This has been tackled in other questions[2], although again there is no consensus and in my experience it is often a matter of dialect. It is a lot more common to omit the duplication in American English than in British, despite the obvious challenge that omission creates in pronouncing the word correctly.

In any case, Oxford Dictionary gives the word as grepping.

grep | verb (greps, grepping, grepped)

[with object]

Search for (a string of characters) using grep.


References:

[1] http://www.dailywritingtips.com/close-the-gap-on-prefixes-and-suffixes/

[2] What is the rule for duplicating the last letter when adding "-ed"?