tlhIngan Hol Dajatlh'a' ("Do you speak Klingon?")

Language is something we take for granted. It's what makes human communication possible. We learn it as a child, maybe study a new language at school, or pick up some choice phrases for a holiday trip. A language consists of words - the bits it is made of - and grammar - the way these bits are put together. "The Cat Sat On The Mat" makes sense. "Cat Mat On Sat The" doesn't. Same words but the rules of grammar are broken ... the information is lost. This confused list of words still uses rules: the words are arranged alphabetically. But without the right rules, the rules of grammar, the words can't do what they need to do, which is let us know where that pesky cat is.

The Klingon Alphabet

When we have to communicate with a computer and give it instructions we want to make life easy for ourselves. In the beginning programmers were forced to use binary, that is a list of 1's and 0's to tell the computer what to do. That's because computers are really just a very complex box of switches, and the 1's and 0's told the computer which parts of its circuits to switch on and off, but it made writing the programs a nightmare. It was asking you to speak in an alien tongue.

A better way to communicate with our computers

Something had to change, so those long-suffering programmers looked to what they knew best, human languages, to find a solution. In the same way as a word is made up from letters you could start to think of lists of binary instructions that you could associate together into a simple command to which you could attach some meaningful name. So rather than tell the computer in 1's and 0's ('0101010' say) to put a particular set of values into a particular circuit, you could use the phrase 'LET X=2' to mean the same. The computer understands how to turn a number into binary. It knows that 2 is 10 in binary (that means take a two and add no ones to it, just like a normal decimal 10 means take a ten and add no ones), so this useful idea of a computer language that WE understand means we don't need to talk the nasty alien computer lingo. The language instruction tells the computer to find a place in its memory, which the programmer wants to call X and to put 2 in there.

So to programming languages

The programmer's language is translated to the language the computer uses by following a list of instructions. In the same way as with a human language, if we get the grammar wrong and say typed '=LET 2 X' the computer wouldn't know what to do, the information is there but the grammar is wonky. So computer languages developed following many of the rules of human languages to try and keep it as easy as possible for human programmers to program. BASIC, Beginners All Symbolic Instruction Code was an early attempt. That's why, for example, there are university courses on Computer Science and Linguistics. The two are very closely related.

The Universal Translator?

A Babel Fish

There are now computer programs which translate human languages. You may have seen these on Google or Babel Fish for example. What is happening here is that to translate say French text into German, the French is first translated to a language the computer understands and can work with. The text in that computer language is then translated back into German ... so it's passed through that strange alien binary language of the computer somewhere in between. Of course its very basic, Google just substitutes words, but there are many researchers around the world trying to develop software that takes into account the complex rules of human languages and grammar and some systems even try to learn languages from scratch like a child, in effect trying to produce the universal translator similar to the idea in Star Trek, which can translate any language to 'American English'. (Of course it would be easier to use the TARDIS telepathic circuits like Dr Who ... a small summer project there for anyone interested).

Synthetic Languages

We tend to think of human languages as always having been around in their current form, and computer languages as new, but human languages need to have developed from somewhere, and that's another fascinating story where computers have helped. Some people have even created their own spoken languages such as Esperanto. The basic rules and words of Esperanto were proposed by L. L. Zamenhof at the end of the 19th century, the idea was to create a world language that everyone could speak. It never really took off, though there are still many people who learn it and use it.

Which brings us to Klingon, a made up language from Star Trek developed by Marc Okrand, see Klingon Language Institute. It has words, a fixed grammar and there are lots of 'native speakers' out there, so you guessed it ... there are programs that translate English to Klingon. It's interesting to think that a software program to translate a made up alien language does it by using its own made up alien language in the computer. As Mr Spock would say 'Quite Fascinating!'

Qapla' ("Success!")

Footnote In the interests of Galactic Peace it should also be pointed out that there are also programs that translate English into Vulcan, Romulan, Ewok, Wookie, Ferengi ...

The Maze

The maze

Through a window, in a large open room scientists in white coats play space invaders.

The maze

At the bar is a man in a DJ is ordering a Martini, shaken not stirred.