I have a meta-search engine system, i implemented mainly using static classes. The query pre processing module consists of the following static methods
function queryPreprocessing() { }
queryPreProcessing.removeStopWords = function (query){ // code here}
queryPreProcessing.stemmer = function (w) { //code here }
queryPreProcessing.convertBoolean = function (w){ //code here}
Technically the query pre processing modules takes as input a string (the query) and performs the above named functions on it. For example:
var query = $("#textbox").val();
query = queryPreProcessing.removeStopWords(query) ;
query = queryPreProcessing.stemmer(query) ;
query = queryPreProcessing.convertBoolean(query) ;
For simplicity, it was easier for me to make all the methods static and call them when needed but my question is: Is this the best way of doing it?