Popularity
1.1
Declining
Activity
0.0
Stable
6
2
0

Description

This is an elixir dictionary library providing information for words, often refered as "headword" in linguistic domains.

This library compile dictionary data into codes for accurater results. There are some libraries using algorithms to get results. However, so far the results are not good enough compared to dictionaries. It may change in future and hopefully we'll switch to a better approach.

Monthly Downloads: 6
Programming language: Elixir
License: MIT License
Tags: Dictionary     Linguistic     Syllables     English    

README

WordInfo

This is an elixir dictionary library providing information for words, often refered as "headword" in linguistic domains.

This library compile dictionary data into codes for accurater results. There are some libraries using algorithms to get results. However, so far the results are not good enough compared to dictionaries. It may change in future and hopefully we'll switch to a better approach.

Usage

Frequency

iex> WordInfo.frequency("word")
340

340 means this word is the last one of top 340 frequently used words, among the whole 33,000 ones. Quite popular!

ARPABET pronunciation

iex> WordInfo.arpabet("mix")
["M", "IH1", "K", "S"]

IPA pronunciation

iex> WordInfo.ipa("exsiting")
["ɪgˈzɪstɪŋ"]

Syllables

iex> WordInfo.syllables("syllable")
["syl", "la", "ble"]

Please refer to online document for more information.

Acknowledgements

Here are the data sources of this library:

Without these open data, this library is impossible.