Detecting plurals in dot.net / C# the way a human might

I recently had a requirement to be able to spot pluralised words which may not be real words, but follow English language conventions, and so appear as a plural to any normal reader. So ComplexBusinesObjects is a valid plural of ComplexBusinesObject but series is its own plural. The idea was to write code that would recognise a plural in the same way a human might, even if it was not perfect grammar....

August 16, 2016 · 2 min · 361 words · Alastair Crabtree