double-metaphone-0.0.1: Haskell bindings to a C double-metaphone implementation.

Safe HaskellNone
LanguageHaskell98

Language.Phonetic.DoubleMetaphone

Contents

Description

Provides a double metaphone algorithm extracted from the perl library Text-DoubleMetaphone-0.07.

Synopsis

Types

doubleMetaphoneBounded Source

Arguments

:: Int

Number of characters to stop computing the longest result at.

-> ByteString

The input string, should be Latin-1 or Char7 encoded.

-> (ByteString, ByteString) 

Thin wrapper around a C function, returns two metaphone representations.

doubleMetaphone Source

Arguments

:: ByteString

The input string, should be Latin-1 or Char7 encoded.

-> (ByteString, ByteString) 

Thin wrapper around a C function, returns two metaphone representations.

The output will be bounded at somewhere around 2 ^ (word size - 1)