**Numbers**
Well-known languages generally have a O(log n) way of expressing the natural number n. Toki Pona, on the other hand, has words only for "one" (wan), "two" (tu), "five" (luka, which also means "hand"), and "many" (mute), and these words are additive. For example, thirteen is mute or luka luka tu wan. Expressing specific numbers greater than twenty in such an O(n) system is uncommon. Below is a Scheme program that translates a number into this notation.

;;; int->tokipona
;;; Scheme code to return the name of a positive integer
;;; in the Toki Pona language.
;;; By Damian Yerrick (jan Tepo li pali e ni)
(define int->tokipona
(letrec ((iter
(lambda (n)
(cond
((>= n 5) (cons "luka " (iter (- n 5))))
((>= n 2) (cons "tu " (iter (- n 2))))
((>= n 1) '("wan "))
(else '())))))
(lambda (n)
(apply string-append (iter n)))))
This is a Befunge program that does the same thing, by Lament (jan Nikita):

&>:!#@_:4`#v_1-:#v_0"naw">:#,_@
>^#<$:-1$<@>:4+>$0" akul">:#,_v
$5-^>:#,_^#:"tu "<<(c) Lament>>

https://archive.vn/gMrlT

#TokiPona #nanpa #numbers #program #ilo_nanpa #anno2007

Toki Pona language

Toki Pona, on the other hand, has words only for "one" (wan), "two" (tu), "five" (luka, which also means "hand"), and "many" (mute), and these words are additive. For example, thirteen is mute or luka luka tu wan. Expressing specific numbers greater than twenty in such an O(n) system is uncommon. Below is a Scheme program that translates a number into this notation.

;;; int->tokipona
;;; Scheme code to return the name of a positive integer
;;; in the Toki Pona language.
;;; By Damian Yerrick (jan Tepo li pali e ni)
(define int->tokipona

(letrec ((iter
(lambda (n)
(cond
((>= n 5) (cons "luka " (iter (- n 5))))
((>= n 2) (cons "tu " (iter (- n 2))))
((>= n 1) '("wan "))
(else '())))))
(lambda (n)
(apply string-append (iter n)))))

This is a Befunge program that does the same thing:

&>:!#@_:4`#v_1-:#v_0"naw">:#,_@
>^#<$:-1$<@>:4+>$0" akul">:#,_v
$5-^>:#,_^#:"tu "<<(c) Lament>>

http://www.bioreference.net/encyclopedia/wikipedia/t/to/toki_pona_language.html

#TP #nanpa

Toki Pona language

Well-known languages generally have a O(log n) way of expressing the natural number n.
Toki Pona, on the other hand, has words only for “one” (wan), “two” (tu), “five” (luka, which also means “hand”), and “many” (mute), and these words are additive.
For example, thirteen is mute or luka luka tu wan.
Expressing specific numbers greater than twenty in such an O(n) system is uncommon. Below is a Befunge program that translates a number into this notation:

&>:!#@_:4`#v_1-:#v_0"naw">:#,_@
>^#<$:-1$<@>:4+>$0" akul">:#,_v
$5-^>:#,_^#:"tu "<<(c) Lament>>

http://blog.zog.org/2004/05/nog_links_1.html

#ToniPona #numbers #nanpa #sona #anno2004

Nog links | Michel Vuijlsteke's weblog

Alsof ik hele dagen niets anders te doen heb dan op het internet zitten: nog links. The results on the test showed that you are porn savvy. You are open-minded and experienced when it comes to adult…

Michel Vuijlsteke&#039;s weblog

Toki Pona, on the other hand, has words only for "one" (wan), "two" (tu), "five" (luka, which also means "hand"), and "many" (mute), and these words are additive. For example, thirteen is mute or luka luka tu wan.
[...]
Below is a Scheme program that translates a number into this notation.

;;; int->tokipona
;;; Scheme code to return the name of a positive integer
;;; in the Toki Pona language.
;;; By Damian Yerrick (jan Tepo li pali e ni)
(define int->tokipona
(letrec ((iter
(lambda (n)
(cond
((>= n 5) (cons "luka " (iter (- n 5))))
((>= n 2) (cons "tu " (iter (- n 2))))
((>= n 1) '("wan "))
(else '())))))
(lambda (n)
(apply string-append (iter n)))))
This is a Befunge program that does the same thing, by Lament (jan Nikita):

&>:!#@_:4`#v_1-:#v_0"naw">:#,_@
>^#<$:-1$<@>:4+>$0" akul">:#,_v
$5-^>:#,_^#:"tu "<<(c) Lament>>

http://infomutt.com/t/to/toki_pona_language.html

:elephant:

#TokiPona #numbers #nanpa #sona

Toki Pona language