This command line tool allows you to translate any text to Brusa Language... or more simply to BURSA LNGUGIE H!?
Every source file in the repository have to be named LANGUAGE.xxx where xxx
is the
extension needed by that language.
Each program should have this command line interface:
PROGRAM [filename]
If the filename
parameter is missing the program has to read from the standard input.
The algorithm is very simple and it's divided into some phases:
- Capitalize everything
- Swap some letters (max 2 per word)
- A pair of adjacent letters will be swapped with a probability of
20%
- No more than 2 swaps per word
- A pair of adjacent letters will be swapped with a probability of
- Remove some letters (20% of the word at most)
- Remove a letter with a probability of 5% if it is a vocal
- 10% if it's a consonant
- 40% if it's a double letter
- Add to the end of the line some
H!?
- With a probability of 30%