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.
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)
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"
}
}
}
}
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.
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.
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.
Metaphone is optimized for English pronunciation rules and may not work well with other languages. Consider language-specific phonetic algorithms for non-English text.
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.