Lojban
From HaskellWiki
Contents |
1 Introduction
Lojban is a constructed language. “Lojban was not designed primarily to be an international language, however, but rather as a linguistic tool for studying and understanding language. Its linguistic and computer applications make Lojban unique among international languages...” (NC:LojPer, page 15 par 1) -- the entire book is available also online, see the very bottom of the linked page.
It is an artificial language (and, unlike the more a posteriori Esperanto, it is rather of an a priori taste (Moo:LojPer)). It is a human language, capable of expressing everything. Its grammar uses (among others) things taken from mathematical logic, e.g. predicate-like structures. Although its does not make use combinatory logic directly (even, from a combinatory logic / functional programming point of view, it uses also rather imperative ideas), but it may give hints and analogies, how combinatory logic can be useful in linguistics. I like searching Lojban examples illustrating the learned statements when learning about applicative universal grammar.
See its official homepage here.
2 Analogies of combinatory logic combinators
The Lojban sentence examples are taken from (NC:WhLoj, Chapter 3. Diagrammed Summary of Lojban Grammar). Sometimes, I modified the sentences slightly, if the combinatory logic analogies made it necessary.
Predicates
| Somebody | sells | something | to sombebody | for some price |
| x1 | predicate | x2 | x3 | x4 |
A little vocabulary:
-
mi - I
-
vecnu - sell
-
do - you
-
ta - that
Syntax:
mi
| cu
| vecnu
| ta
| do
| zo'e
| vau
|
| x1 | predicate | x2 | x3 | x4 |
cu and vau are separators (and they are optional).
zo'e is only a place-keeper: the argument whose place is fiiled in by it is not specified.
3 Filipping
ta
| cu
| se vecnu
| do
| mi
| zo'e
| vau
|
| x1 | predicate | x2 | x3 | x4 |
Comparing vecnu and se vecnu, it is of taste
combinator of combinatory logic.
Comparing structure:
| x1 | cu
| predicate | x2 | x3 | x4 | vau
|
|---|---|---|---|---|---|---|
do
| vecnu
| ta
| mi
| zo'e
| ||
ta
| se vecnu
| mi
|
4 Repeating
Words mi, do correspond to English personal pronouns I (me), you. Lojban has other similar words, e.g. ri. Word ri fills in an argument (of the predicate) which repeats the previous argument.
| Somebody | talks | to sombebody | about something | in some language |
| x1 | predicate | x2 | x3 | x4 |
A little vocabulary:
-
mi - I
-
tavla - talk
-
do - you
-
la lojban. - Lojban
Syntax:
mi
| cu
| tavla
| do
| la lojban.
| la lojban.
| vau
|
| x1 | predicate | x2 | x3 | x4 |
The word ri helps us avoiding repeating the argument of predicate in this case:
mi cu tavla do la lojban. ri vau
I think, it is a rather imperative solution, compared to the
combinator of combinatory logic, but in this case, it has the same effect. If Lojban used combinators, I should write (using the elementary duplicator
):
(mi cu tavla do) la lojban.
Deferred combinator
helps us even more here:
mi cu (
tavla) do la lojban.
-sequences could be used also for avoiding the many-many repeating zo'e words (of course, if Lojban used combinators):
I talk.
(Not specified, to whom, about what topic, in what language!)
mi cu tavla zo'e zo'e zo'e vau
What could help us in lambda calculus?
- λfx.fxxx
mi cu (
tavla) zo'e vau
In combinatory logic,
makes that:
mi cu (
tavla) zo'e vau
Lojban does not use combinators this way, it uses also rather imperative solutions. Despite of that, Lojban makes me think of combinatory logic and applicative universal grammar.
5 References
- NC:WhLoj
- Nicholas, Nick and Cowan, John (ed.): What is Lojban? Logical Language Group, 2003. Available also online, see the very bottom of the linked page.
- Moo:LojPer
- Todd Moody: Lojban in Perspective. Available from here, part of Lojban's official homepage
