CodeSOD: Microsoft's English Pluralization Service

This post was originally published on this site

The Daily WTF

Despite founding The Daily WTF more than fifteen years ago, I still find myself astonished and perplexed by the curious perversions in information technology that you all send in. These days, I spend most of my time doing “CEO of Inedo stuff”, which means I don’t get to code that much. And when I do, it’s usually working with the beautiful, completely WTF- and bug-free code that our that our world-class engineers create.

I mention this, because when I come across TDWTF-worthy code on my own, in the wild, it’s a very special occasion. And today, I’m excited to share with you one of the worst pieces of code I’ve seen in a very long time: EnglishPluralizationServices.cs

Anyone even remotely familiar with the English language knows that pluralization is hard, and not exactly something that should be generalized in library… let alone Microsoft’s most strategic programming asset of the past

To read the full article click on the 'post' link at the top.