Text Analysis

Metaphone

Generates Metaphone phonetic encodings that group words by pronunciation similarity. Use via MCP in Cursor or Windsurf, or call GET /v1/text/metaphone with your text. Example: "Smith" and "Smythe" both encode to "SM0". Perfect for fuzzy name matching, search engines, and AI agents building phonetic indexes.

API Endpoint

GET /v1/text/metaphone

Code Examples

curl "https://tinyfn.io/v1/text/metaphone" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/text/metaphone', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/text/metaphone',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's text analysis tools:

{
  "mcpServers": {
    "tinyfn-text": {
      "url": "https://tinyfn.io/mcp/text",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

What is Metaphone encoding used for?

Metaphone creates phonetic codes for words that sound similar, enabling fuzzy matching for names, search functionality, and deduplication. It's more accurate than Soundex for English words.

How can AI agents use Metaphone through MCP?

AI agents in Cursor, Claude Code, or Cline can call the Metaphone tool to build phonetic search systems, match similar-sounding names in databases, or create spell-check suggestions based on pronunciation.

What's the difference between Metaphone and Soundex?

Metaphone handles English phonetics more accurately than Soundex, especially for consonant clusters and silent letters. It produces variable-length codes while Soundex is always 4 characters.

Does Metaphone work with non-English words?

Metaphone is optimized for English pronunciation rules and may not work well with other languages. Consider language-specific phonetic algorithms for non-English text.

Can I batch process multiple words for Metaphone encoding?

The API processes one word at a time. For batch operations, make multiple calls or use MCP tools in your AI workflow to process lists of words sequentially.

Try Metaphone Now

Get your free API key and start using Metaphone in seconds.

Get Free API Key