DEV Community

[Comment from a deleted post]
Collapse
 
craser profile image
Chris Raser

I totally empathize with anyone learning English as a non-native. English is my native tongue, and I agree that it's terrible.

But I'd strongly advise against revising English spelling and grammar in your code. Eventually, your English will get better, and the strange rules won't feel so strange.

My I suggest, ever so humbly and gently, that regexes and macros are not the best ways to make sweeping modifications to your code. Lots of editors (Sublime, IntelliJ, WebStorm, Eclipse, etc.) have built-in functions
to let you quickly and safely change variable and function/method names, refactor code, etc.

And in your particular case, I'd suggest locating (or writing!) a script that will pluralize English nouns correctly. (I did a quick Google search and found a JavaScript npm module, a Ruby gem, and some code in Python that all do this.)

Doing normal things in a new language is exhausting. But just remember that you only have to type the variable name once, and after that you can use auto-complete. :)