Skip to content

TheEntropics/brusascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The BrusaScript Translator

This command line tool allows you to translate any text to Brusa Language... or more simply to BURSA LNGUGIE H!?

Specifications

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

The algorithm is very simple and it's divided into some phases:

  1. Capitalize everything
  2. Swap some letters (max 2 per word)
    1. A pair of adjacent letters will be swapped with a probability of 20%
    2. No more than 2 swaps per word
  3. Remove some letters (20% of the word at most)
    1. Remove a letter with a probability of 5% if it is a vocal
    2. 10% if it's a consonant
    3. 40% if it's a double letter
  4. Add to the end of the line some H!?
    1. With a probability of 30%

About

TEH BURSA TARSNALTOR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published