WebService::Yamli - Perl wrapper for Yamli's Arabic transliteration service
use WebService::Yamli;
# non-OO:
my $tr = WebService::Yamli::tr('perl di 7aga la6eefa aslan');
say $tr; # the whole sentence transliterated
my @tr = WebService::Yamli::tr('perl');
say "@tr"; # a list of candidates
Franco-Arabic, aka Chat Arabic, Arabizy, is a transliteration of Arabic, commonly used on the internet. It restricts itself to the ASCII charset and substitutes numbers for the Arabic characters which have no equivalent in Latin.
This Module is an interface to Yamli.com's API.
It seems there's no way to feed the Yamli API more than one word, so currently each word results in a HTTP request. Define $WebService::Yamli::HTTPS if HTTPS should be used instead.
- tr($arg)
-
Transliterates argument. Returns transliterated string, except if input is a single word and subroutine is in list context, in that case it returns a candidate list
http://github.com/athreef/WebService-Yamli
Ahmad Fatoum <[email protected]>
, http://a3f.at
Copyright (C) 2016 Ahmad Fatoum
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.