Skip to main content

encode

Function encode 

Source
pub fn encode(term: &str) -> String
Expand description

Returns the primary Double Metaphone code for one term.

Returns an empty string for a term with no encodable letters, which the caller treats as “no phonetic term”, never as a term that matches everything.