net.liftweb.util.LD

object LD

object LD

 extends ScalaObject


Calculate the edit distance between words


Source: LD.scala(26)

 Constructors

def this

 Methods

!=.. final def !=(arg0 : Object) Boolean AnyRef
!=.. final def !=(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Object) Boolean AnyRef
apply.. def apply[T](root : String, ly : List[T], f : (T) => String)
Find the word that has the closest edit distance to the root string [details]
param
ly - the list of items to test against Root
f - the function that converts the item to a String
root - the root word to compare the other words to
return
- a Tuple containing item with the shortest edit distance and the edit distance
(T, Int)
apply.. def apply(x : String, y : String)
calculate the edit or Levenshtein distance between two words
param
y - the second word to compare
x - the first word to compare
return
- the edit distance between the words
Int
apply.. def apply(root : String, ly : List[String])
Find the word that has the closest edit distance to the root string [details]
param
ly - the list of words to test against Root
root - the root word to compare the other words to
return
- a Tuple containing the word with the shortest edit distance and the edit distance
(String, Int)
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. def toString String AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.