Class Soundex

java.lang.Object
org.mvel2.util.Soundex

public class Soundex extends Object
An implementation of Knuth's soundex algorithm. Used by the soundslike operator.
  • Field Details

    • MAP

      public static final char[] MAP
  • Constructor Details

    • Soundex

      public Soundex()
  • Method Details

    • soundex

      public static String soundex(String s)
      Convert the given String to its Soundex code.
      Parameters:
      s - input string
      Returns:
      null If the given string can't be mapped to Soundex.