From 39932bd2d5233b3667dd3a58a60a16b693c257a4 Mon Sep 17 00:00:00 2001 From: "D. Moonfire" Date: Sat, 10 Jan 2015 10:56:39 -0600 Subject: [PATCH] Adding numbers. --- bin/count-leading-syllables | 16 +++-- dictionary/we/we.markdown | 12 ++++ grammar/numbers.markdown | 120 ++++++++++++++++++++++++++++++++++++ 3 files changed, 144 insertions(+), 4 deletions(-) create mode 100644 dictionary/we/we.markdown create mode 100644 grammar/numbers.markdown diff --git a/bin/count-leading-syllables b/bin/count-leading-syllables index 3b2f6c9..da78ac1 100755 --- a/bin/count-leading-syllables +++ b/bin/count-leading-syllables @@ -11,6 +11,17 @@ use warnings; # Modules use File::Basename; +# +# Syllables +# + +my @SYLLABLES = qw@a wa ra ma pa ba ha na da ta za sa ga ka fa e we re +me pe be he ne de te ze se ge ke fe i wi ri mi pi bi hi ni chi ji shi +gi ki fi o wo ro mo po bo ho no do to jo so go ko fo u wu ru mu pu bu +hu nu tsu zu su gu ku fu ya rya mya pya bya hya nya chya jya shya gya +kya yo ryo myo pyo byo hyo nyo chyo jyo shyo gyo kyo yu ryu myu pyu +byu hyu nyu chyu jyu shyu gyu kyu n@; + # # Figure out the directory # @@ -23,11 +34,8 @@ my $dict_directory = "$root_directory/dictionary"; # Go through the syllable files and build up the counts. # -foreach my $syllable (glob("$dict_directory/*")) +foreach my $syllable (@SYLLABLES) { - # Ignore non-directories. - next unless $syllable; - # Figure out the counts for this directory. my @count = glob("$dict_directory/$syllable/*.markdown"); my $count = scalar(@count); diff --git a/dictionary/we/we.markdown b/dictionary/we/we.markdown new file mode 100644 index 0000000..f60b468 --- /dev/null +++ b/dictionary/we/we.markdown @@ -0,0 +1,12 @@ +--- +title: we +--- + +Particles +================================ + +we +---------------- + +1. Indicates the beginning of a number sequence. + diff --git a/grammar/numbers.markdown b/grammar/numbers.markdown new file mode 100644 index 0000000..6f1fcd1 --- /dev/null +++ b/grammar/numbers.markdown @@ -0,0 +1,120 @@ +--- +title: Numbers +--- + +When spoken, numbers in Miwāfu are spelled out with a leading particle to indicate that it is a number. + +Numbers +================================ + +Arabic | Syllable +-----: | :------- +0 | pa +1 | re +2 | chi +3 | ko +4 | mu +5 | za +6 | ge +7 | hi +8 | to +9 | fu + +Numeral Particle +================================ + +The beginning of a number series is indicated by `we`. + + we parechi + [numeral] 123 + 123 + +The end of a numerical sequence is either a pause between words or `nwe`. + + we parechi nwe + [numeral] 123 [end-numeral] + 123 + +Scales +================================ + +With large numbers, values are separated in groups of three. The separator is `do`. + + wa padorechiko + wa pa do rechiko + [numeral] 1 [thousands] 234 + 1,234 + +If the entire group is zero, then the number itself can be skipped. + + wa padorechiko + wa pa dodo rechiko + [numeral] 1 [thousands] [thousands] 234 + 1,000,234 + +Scales are based on the previous number, not the total magnitude. In English, one would say "1 billion, 1 thousand." In Miwāfu, one would say "1 thousand 1 thousand". + + wa padopado + wa pa do pa do + [number] 1 [thousands] 1 [thousands] + 1,000,001,000 + +In addition to using the thousands skip, there are additional amounts that can be interspersed with the number or used at the end. + +Arabic | Description | Syllable +----------------: | :------- +10 | Ten | mya +100 | Hundred | pyu +1,000 | Thousand | do +1,000,000 | Million | kya +1,000,000,000 | Billion | jyo +1,000,000,000,000 | Trillion | shyo + +These can be combined together: + + pa doshyo + 1 [thousand] [trillion] + 1 quadrillion + 1,000,000,000,000,000 + +Decimals +================================ + +The decimal indicator is `rya`. + + paryapa + pa rya pa + 1.1 + +Negatives +================================ + +If the leading `we` is suffixed by `-yo`, it indicates a negative number. + + weyo pa + [numeral-negative] 1 + -1 + +Mathematics +================================ + +Simple math, addition and subtraction, is done with additional suffixes. `-yo` is used for subtracting values. + + we pa weyo re + [numeral] 1 [numeral-negative] 2 [end-numeral] + 1 - 2 + -1 + +For addition, `-ko` is used. + + we pa weko re + [numeral] 1 [numeral-positive] 2 [end-numeral] + 1 + 2 + 3 + +In a series of math, only the final needs a `nwe` if one is required. + + we pa weyo re nwe + [numeral] 1 [numeral-negative] 2 [end-numeral] + 1 - 2 + -1