A silly project that revereses word's syllables in a sentance. Written for Cyrillic alphabet and bulgarian language's rules.
Co-bran
is named after a person I know who loves speaking and writing in this way. (I don't judge anybody).
It is meant to be run in Deno. Actually it was a project meant to test Deno's features.
input: "Мишо, жив и здрав, много бира в корема, хмел в магазина и пачки в джоба"
expected output (still debatable how correct the "encoding" is): "Шоми, жив и вардз, гомно раби в мареко, лемх в назигама и кипач в баджо"
In a Deno project import the url for the latest code:
import {
encodeSentence
} from 'https://raw.githubusercontent.com/ibetovski/co-bran/master/src/sentence.js'
or specify a version:
import {
encodeSentence
} from 'https://raw.githubusercontent.com/ibetovski/co-bran/v0.0.1/src/sentence.js'
Then use it as:
console.log(
encodeSentence(
"Some silly sentance in bulgarian language here (in cyrillic)"
)
);
Still not all tests are completed. Needs more work on the word splitting in syllables.
$ deno test