CodeIgniter Forums
What is the use of word_is_countable() function in codeigniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: What is the use of word_is_countable() function in codeigniter (/showthread.php?tid=73676)



What is the use of word_is_countable() function in codeigniter - tabtengoyal - 05-21-2019

I am new to php frameworks and am studying codeigniter. While going through the code of the helper functions, I found the word_is_countable($word) function in inflector_helper.php under helpers.

The function is given in the bottom half here:
https://github.com/bcit-ci/CodeIgniter/blob/develop/system/helpers/inflector_helper.php

The function seems to be pretty straightforward but seems to just check for a few words. If it checks for so few words, then how can we expect it to be robust and fulfill the needs of a dynamic application which might need to search for any word in the dictionary.

As such, I wished to know the reason for including this function in the framework. I am sorry if this sounds like a novice question. Thanks.


Also, I am a student with a commerce degree and have been able to teach myself coding from the front end to core php/nodejs/mysql and frameworks till now. I can make simple crud applications and applications with simple functionality in codeigniter. I will be grateful if experienced members of this forum could suggest what I should do next in order to become employable in this field. Thank you.