We need a generic Grep to filter thousand of words that are exactly but differ in the ending s.
Perhaps a Grep formulae is the solution?
Something like that Grep that recognizes duplicates, but here must identify both of them: with and without the letter s.
Don't see how it would be possible.
I can find all words that have and haven't got a letter "s" at the end.
But there's no way to define those words per the search.
How would you define words like "Hiss" or "Miss" or "Greatness" etc.
There's no way to do it.
It would be better if you told use why you need to find these things and what is your end goal?
We are working in an interactive grammar (spanish) where practically all the words, at least for our project, form plural with the addition of letter s. (Spanish do not have double ss ending words). Working with plurals is part of the goals.
The copy is a list (single words separated by hard returns already alfabetized):
It is required that grep identify the singular or the plural when both words are the same.
(Some exceptions like the word Dios/Dioses= God will be resolved by other means)
Ah, that example makes it clear! Yes, it is possible. You can search for this:
(although if your sample list is *not* exactly as it appears in your document and you have a lowercase 's' at the end, you should adjust the GREP for that).
Also matching 'es' plurals in a separate search would be
and you can even match both:
It worked absolutely perfect. And the exceptions!
It is completely new and different from that grep to match repeated words!
Thanks a lot.