Skip to content

freaker2k7/translingual

Repository files navigation

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/translingual@1.1.7/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

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

Language Source
"en" - English English orthography
"ru" - Russian Russian alphabet
"es" - Spanish Spanish orthography
"de" - German German orthography
"el" - Greek Greek orthography
"sr" - Serbian Serbian Cyrillic alphabet
"fr" - French French orthography
"uk" - Ukrainian Ukrainian alphabet
"he" - Hebrew Hebrew spelling
(only "to" - can't read, can only write)
"trans" - Transcription IPA

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

About

Multilingual transliteration - phonetic translation using transcription.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published