Грамматика ложбана/4.11

Материал из LingvoWiki
Перейти к навигацииПерейти к поиску
Important.png Эта статья в данный момент активно редактируется участником Nerus-slovar!

Пожалуйста, не вносите в неё никаких изменений до тех пор, пока не исчезнет это объявление.
В противном случае могут возникнуть конфликты редактирования!

11. Алгоритм создания новых lujvo.

В этом разделе описан алгоритм создания lujvo из tanru. Этот алгоритм был разработан Бобом Ле-Шевалье и доктором Джеймсом Куком Брауном для реализации в качестве компьютерной программы. В 1989 году в алгоритм были внесены изменения при участии Норы Ле-Шевалье, которая обнаружила ошибку в первоначальной “проверке tosmabru”.

На входе алгоритма имеется tanru, для которого нужно создать lujvo.

1)

   Для каждого из gismu или cmavo, входящих в исходное tanru, кроме последнего, выберите rafsi длиною 3 или 4 буквы.

2)

   Для последнего gismu, входящего в tanru, выберите rafsi длинною 3 или 5 букв.

3)

   Соедините все эти rafsi в одну строку, поначалу не вставляя соединителей.

4)

   Вставьте соединители там, где нужно. Не разрешается вставлять соединители туда, где они не
   требуются с точки зрения данного алгоритма. По причинам, объяснённым далее, желательно провести
   проверки справа налево.
   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.