Message Boards Message Boards


List all words that match a given phonetic pattern?

Posted 1 month ago
1 Reply
2 Total Likes

DictionnaryLookup searches for dictionary entries matching a given spelling pattern, but is there a way to search for entries matching a given phonetic pattern, possibly using the international phonetic alphabet instead of the dictionary's alphabet?

This could be very useful to find mnemonics in the so-called major system

Posted 1 month ago

Hi Lucien,

WordData can return the PhoneticForm for a word.

WordData["hello", "PhoneticForm"]
(* "həlˈoʊ" *)

Perhaps you can build an Association of the words you are interested in (or all words in WordData[]) and their phonetic form. Then use StringContainsQ to do the pattern matching.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract