Theuth

Theuth is a programming language dedicated to TOP (Thing Oriented Programming) and ATNL (Automatic Translation of Natural Language). Non-TOP languages are currently the majority: we design them under the generic term of TOPless languages. Theuth is consistent with the FUCK convention (Free-Use Cheching-Kits).

This is an example of Theuth code:

’{I don’t care if #:whatever} -~→ {|Je m’en fous si #:whatever} ’{you hurt your #:limb} -~→ {|tu te blesses le #:limb} ’{foot} -~→ {|pied} ’{damned #:thing} -~→ {|#:thing à la con}

The result of this (very short) piece of code is that, if someone type this on a Theuth-run wiki (such as Blue Moon):

/I /don’/t /care /if /you /hurt /your /foot…

it will produce the following sentence onto screen:

Je m’en fous si tu te blesses le pied…

(As you probably guessed it, this is the translation of the original sentence in french)

Now, you can have the same result by typing:

\translate {I don’t care if you hurt your foot}

The grammar goes modularly, and this can go very far in complexity, so, as you can see in our very simple example, if you type:

\translate {I don’t care if you hurt your damned foot!}

you get the right translation into french, and notice you just had to type one new grammar item (rule) to achieve this!

(Posted by: NicolasMontessuit)

Discussion

Neat!

Have you written more than sentences – perhaps a few full pages this way?

I’d be interested to know how well it works, beyond sentences.

After a while on other projects, I work on Theuth again. It will be smarter : words will be defined as semantic objects, allowing users to implement complete sets of idiosyncrasic structures and data. News to come soon !

EditNearLinks: NicolasMontessuit

Languages: