def convert(input_token)
      if (input_token[-1, 1] == "ς")
        input_token[-1, 1] = "σ"
      end

      # Is this a Greek word?
      if (!identify_greek_word(input_token))
        return nil
      end

      # if generating greek variants is on
      if (generate_greek_variants)
        # generate them
        @greek_words = reverse_stemmer.generate_greek_variants(input_token)
      else
        @greek_words << input_token
      end

      # if there are greek words
      if (greek_words.size > 0)
        # generate their greeklish version
        return greeklish_generator.generate_greeklish_words(greek_words)
      end

      nil
    end
def convert(input_token)
      if (input_token[-1, 1] == "ς")
        input_token[-1, 1] = "σ"
      end

      # Is this a Greek word?
      if (!identify_greek_word(input_token))
        return nil
      end

      # if generating greek variants is on
      if (generate_greek_variants)
        # generate them
        @greek_words = reverse_stemmer.generate_greek_variants(input_token)
      else
        @greek_words << input_token
      end

      # if there are greek words
      if (greek_words.size > 0)
        # generate their greeklish version
        return greeklish_generator.generate_greeklish_words(greek_words)
      end

      nil
    end
The actual conversion is happening here.

 @param input_token the Greek token
 @param token_length the length of the input token
 @return A list of the generated strings