Now go try different variations until you find an edge case that breaks this very very simple algorithm that I have on my libraries for the past 10 years, then I can tell you to use Humanizer and simplify your life and have something like this; https://dotnetfiddle.net/9TsILi
View all comments
Show parent comment
2
u/AintNoGodsUpHere Sep 21 '26
AND HOW IS THAT A PROBLEM MY MAN? 20 LINES OF CODE, JESUS.