Грамматика ложбана/4.11
Материал из LingvoWiki
Версия от 11:22, 21 сентября 2012; Nerus-slovar (обсуждение | вклад) (→11. Алгоритм создания новых lujvo.)
Эта статья в данный момент активно редактируется участником Nerus-slovar! Пожалуйста, не вносите в неё никаких изменений до тех пор, пока не исчезнет это объявление. В противном случае могут возникнуть конфликты редактирования! |
11. Алгоритм создания новых lujvo.
В этом разделе описан алгоритм создания lujvo из tanru. Этот алгоритм был разработан Бобом Ле-Шевалье и доктором Джеймсом Куком Брауном для реализации в качестве компьютерной программы. В 1989 году в алгоритм были внесены изменения при участии Норы Ле-Шевалье, которая обнаружила ошибку в первоначальной “проверке tosmabru”.
На входе алгоритма имеется tanru, для которого нужно создать lujvo.
1)
Choose a 3-letter or 4-letter rafsi for each of the gismu and cmavo in the tanru except the last.
2)
Choose a 3-letter (CVV-form or CCV-form) or 5-letter rafsi for the final gismu in the tanru.
3)
Join the resulting string of rafsi, initially without hyphens.
4)
Add hyphen letters where necessary. It is illegal to add a hyphen at a place that is not required by this algorithm. Right-to-left tests are recommended, for reasons discussed below.
4a) If there are more than two words in the tanru, put an “r”-hyphen (or an “n”-hyphen) after the first rafsi if it is CVV-form. If there are exactly two words, then put an “r”-hyphen (or an “n”-hyphen) between the two rafsi if the first rafsi is CVV-form, unless the second rafsi is CCV-form (for example, “saicli” requires no hyphen). Use an “r”-hyphen unless the letter after the hyphen is “r”, in which case use an “n”-hyphen. Never use an “n”-hyphen unless it is required. 4b) Put a “y”-hyphen between the consonants of any impermissible consonant pair. This will always appear between rafsi. 4c) Put a “y”-hyphen after any 4-letter rafsi form.
5)
Test all forms with one or more initial CVC-form rafsi — with the pattern “CVC ... CVC + X” — for “tosmabru failure”. X must either be a CVCCV long rafsi that happens to have a permissible initial pair as the consonant cluster, or is something which has caused a “y”-hyphen to be installed between the previous CVC and itself by one of the above rules. The test is as follows:
5a) Examine all the C/C consonant pairs up to the first "y"-hyphen, or up to the end of the word in case there are no "y"-hyphens. These consonant pairs are called “joints”. 5b) If all of those joints are permissible initials, then the trial word will break up into a cmavo and a shorter brivla. If not, the word will not break up, and no further hyphens are needed. 5c) Install a “y”-hyphen at the first such joint.
Note that the “tosmabru test” implies that the algorithm will be more efficient if rafsi junctures are tested for required hyphens from right to left, instead of from left to right; when the test is required, it cannot be completed until hyphenation to the right has been determined.