Sign inSign up

evgy/translingual

By evgy

•Updated about 7 years ago

Translingual - Multilingual transliteration - Phonetic translation using transcription.

Image
1

178

evgy/translingual repository overview

⁠Translingual - Multilingual transliteration - Phonetic translation using transcription.

npm version node version npm downloads Gitter Total alerts Language grade: JavaScript Scrutinizer Code Quality Known Vulnerabilities License Repo size Build status Beerpay Liberapay GitHub stars

Translingual Logo

⁠Install

$ npm i -g translingual

⁠Usage

Via bash:

$ trans 'Hello world!' en ru
# "Эллoу Вoурлд!"

As code:

const trans = require('translingual');

var result = trans.ling('Hello world!', 'en', 'ru');
console.log(result); // This will print: "Эллoу Вoурлд!"

Using vanilla JS in your browser:

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/translingual.min.js"></script>
<script type="text/javascript">
	var result = Trans.ling('Hello world!', 'en', 'ru');
	console.log(result); // This will print: "Эллoу Вoурлд!"
</script>

Or even, using Docker:

$ docker run --rm evgy/translingual 'Hello world!' en ru
⁠See live Demo⁠

⁠Description

This small and cool module can phonatically visualize a sentence from one language to another. For this I use transcription⁠. I translate a sentence from any of the supported original languages to transcription, and from that I form back a sentence on any currently supported language.

NOTE: Semitic languages like Hebrew and Arabic are really problematic to translate into transcription without vowelizations⁠.

⁠Spported Languages

LanguageSource
"en" - EnglishEnglish orthography⁠
"ru" - RussianRussian alphabet⁠
"es" - SpanishSpanish orthography⁠
"de" - GermanGerman orthography⁠
"el" - GreekGreek orthography⁠
"sr" - SerbianSerbian Cyrillic alphabet⁠
"fr" - FrenchFrench orthography⁠
"uk" - UkrainianUkrainian alphabet⁠
"he" - HebrewHebrew spelling⁠
(only "to" - can't read, can only write)
"trans" - TranscriptionIPA⁠

⁠Roadmap

  • Add more languages.

⁠License

APACHE-2.0 (see the LICENSE files in the repository).

⁠Donate

Have fun and if you like it, leave a tip for a cup of beer Beerpay ⁠ or directly donate to our cause Donate using Liberapay ⁠

Tag summary

Content type

Image

Digest

Size

463.3 MB

Last updated

about 7 years ago

docker pull evgy/translingual