Greetings i am currently trying to work out if it is possible to create a way to call the singular version of a class by its plural name.
I already have a class that can convert singular words to plural and vice versa, however i have little idea yet how one would go about calling the a class based on whether it is a singular or plural call of said class.
One way i was thinking of doing it would be to dynamically create a pseudo class on call if the singular version of the class exists, which i believe is how ruby does it using metaprogaming, I'm not quite sure of that one yet.