public static String getResults(String inputText)
   {
      char[] w = new char[501];
      Stemmer s = new Stemmer();
	  StringBuilder tt=new StringBuilder();
      
	  char[] args=inputText.toCharArray();
      
	  
	  
	  
	  for(int i=0;i<inputText.length();){  
		  
		  		int ch = args[i++];
		  		if (Character.isLetter((char) ch))
              {
                 int j = 0;
                 while(true)
                 {  ch = Character.toLowerCase((char) ch);
                    w[j] = (char) ch;
                    if (j < 500) j++;
                    ch = args[i++];
                    if (!Character.isLetter((char) ch))
                    {
                       /* to test add(char ch) */
                       for (int c = 0; c < j; c++) s.add(w[c]);

                       /* or, to test add(char[] w, int j) */
                       /* s.add(w, j); */

                       s.stem();
                       {  String u;

                          /* and now, to test toString() : */
                          u = s.toString();

                          /* to test getResultBuffer(), getResultLength() : */
                          /* u = new String(s.getResultBuffer(), 0, s.getResultLength()); */

                //          System.out.print(u);
						  tt.append(u);
                       }
                       break;
                    }
                 }
              }
              if (ch < 0) break;
              //System.out.print((char)ch);
			  tt.append((char)ch);
           }
   return tt.toString();

  }