com.liferay.portlet.words.util
Class WordsUtil

java.lang.Object
  extended bycom.liferay.portlet.words.util.WordsUtil

public class WordsUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Method Summary
static java.util.List checkSpelling(java.lang.String text)
           
static java.util.List getDictionaryList()
           
static java.util.Set getDictionarySet()
           
static java.lang.String getRandomWord()
           
static boolean isDictionaryWord(java.lang.String word)
           
static java.lang.String[] scramble(java.lang.String word)
           
static java.lang.String[] unscramble(java.lang.String word)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkSpelling

public static java.util.List checkSpelling(java.lang.String text)

getDictionaryList

public static java.util.List getDictionaryList()

getDictionarySet

public static java.util.Set getDictionarySet()

getRandomWord

public static java.lang.String getRandomWord()

isDictionaryWord

public static boolean isDictionaryWord(java.lang.String word)

scramble

public static java.lang.String[] scramble(java.lang.String word)
                                   throws ScramblerException
Throws:
ScramblerException

unscramble

public static java.lang.String[] unscramble(java.lang.String word)
                                     throws ScramblerException
Throws:
ScramblerException