Project

apion

0.0
No commit activity in last 3 years
No release in over 3 years
Easy-to-use Fr/Api translator
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 0
 Project Readme

#Apion

Easy-to-use French => Phonetic Alphabet translator

gem install apion
require "apion"

Examples :

irb(main):002:0> Apion.apion("Le chat dodu et roux mange une quiche aux lardons")
=> ["lœ", "ʃa", "dɔdy", "e", "ru", "mɑ̃ʒ", "yn", "kiʃ", "o", "lardɔ̃"]

Automatic ponctuation removal :

irb(main):003:0> Apion.apion("Le chat dodu et roux mange ? Oh ! C'est une belle quiche aux lardons !!!")
=> ["lœ", "ʃa", "dɔdy", "e", "ru", "mɑ̃ʒ", "o", "sɛ", "yn", "bɛl", "kiʃ", "o", "lardɔ̃"]

Handles both existing and non-existing words

irb(main):004:0> Apion.apion("Un chat dodu")
=> ["œ̃", "ʃa", "dɔdy"]

irb(main):005:0> Apion.apion("Un chat toudouchoubidou")
=> ["œ̃", "ʃa", "tuduʃubidu"]

Important : All IPA characters can't be displayed in this README, so the translation can be slightly off