The cl-double-metaphone Reference Manual

This is the cl-double-metaphone Reference Manual, version 0.1.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Fri May 15 11:46:56 2026 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 cl-double-metaphone

Common Lisp implementation of the Double Metaphone phonetic algorithm.

Author

Dan S. Camper <>

Home Page

https://github.com/dancamper/cl-double-metaphone

License

Apache 2.0

Long Description

Implements Lawrence Philips’ Double Metaphone algorithm in pure Common Lisp. Returns primary and secondary phonetic keys for English words. Useful for fuzzy matching, search indexing, and linguistic experiments. Includes a complete FiveAM test suite.

Version

0.1.0

Source

cl-double-metaphone.asd.

Child Components

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


3.1 Lisp


3.1.1 cl-double-metaphone/cl-double-metaphone.asd

Source

cl-double-metaphone.asd.

Parent Component

cl-double-metaphone (system).

ASDF Systems

cl-double-metaphone.


3.1.2 cl-double-metaphone/package.lisp

Source

cl-double-metaphone.asd.

Parent Component

cl-double-metaphone (system).

Packages

double-metaphone.


3.1.3 cl-double-metaphone/double-metaphone.lisp

Dependency

package.lisp (file).

Source

cl-double-metaphone.asd.

Parent Component

cl-double-metaphone (system).

Public Interface

4 Packages

Packages are listed by definition order.


4.1 double-metaphone

Source

package.lisp.

Use List

common-lisp.

Public Interface

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


5.1 Public Interface


5.1.1 Ordinary functions

Function: double-metaphone (word)

Return two phonetic encodings (primary and secondary) for WORD using the Double Metaphone algorithm.

WORD must be a string. The function returns two values:
1. The primary Double Metaphone key — the most likely phonetic representation. 2. The secondary Double Metaphone key — an alternate representation for words with ambiguous or variant pronunciations.

Double Metaphone expects ASCII, so you may need to normalize your WORD before submitting it.

Both keys are uppercase strings containing only ASCII letters. These encodings are suitable for phonetic comparison, fuzzy matching, and indexing of English words and names.

Package

double-metaphone.

Source

double-metaphone.lisp.

Function: metaphone-alternate (word)

Return the secondary Double Metaphone encoding for WORD.

This is a convenience wrapper around ‘DOUBLE-METAPHONE‘ that returns only the second (alternate) phonetic key, which captures less common or ambiguous pronunciations.

Package

double-metaphone.

Source

double-metaphone.lisp.

Function: metaphone-primary (word)

Return the primary Double Metaphone encoding for WORD.

This is a convenience wrapper around ‘DOUBLE-METAPHONE‘ that returns only the first (primary) phonetic key — the most likely representation of the word’s pronunciation.

Package

double-metaphone.

Source

double-metaphone.lisp.


Appendix A Indexes


A.1 Concepts


A.3 Variables