History: Magic Words

Preview of version: 30

This pages is based on me collecting what I thought was the best options out of Magic Words Alternatives. The core is Cowan's version, which in turn uses xorxes' LTR processing idea.

Magic Words


Magic words are all cmavo that have some interaction with words as words irrespective of the function of those words. These are SI SA SU ZO ZOI LOhU LEhU ZEI BU and FAhO. (BAhE, even though it can modify any word, is not a magic word, because it doesn't affect the function of the word it modifies).

Many magic words convert the words they affect into a member of the special grammatical classes any-word and any-string. A member of one of these special grammatical classes has no selma'o for purposes of the rest of the Lojban grammar.

Meta-Rules

  1. Y+BU (i.e. ".y. bu") is considered a single word of selma'o BU. This conversion is done before any other processing of any kind.
  2. Magic words are processed left-to-right.
  3. Y is not a word (i.e. it is considered whitespace) for the purposes of these definitions.

Mini-Definitions

  1. ZO binds with the following word. The combination is considered a single word of the pseudo selma'o any-word (which acts as a sumti in all respects), except for SA matching purposes, where it retains the selma'o ZO.
  2. LOhU turns all following Lojban words up and including a LEhU into a single word of the pseudo selma'o any-string (which acts as a sumti in all respects). The selma'o of LOhU and LEhU are retained for SA matching purposes, however. In other words, SA LOhU destroys everything since the beginning of the last LOhU...LEhU quote, replacing it with a new LOhU, and SA LEhU destroys everything since the end of the last LOhU...LEhU quote, replacing the terminating LEhU with a new LEhU (i.e. not changing the quote at all). LOhU...LEhU quotes cannot be re-opened; to attach more information to a closed quote, use JOI LOhU...LEhU. To quote a LOhU...LEhU quote including the LEhU, use ZOI.
  3. LEhU terminates a LOhU-quote. It is never elidable.
  4. ZEI binds with the preceding word and the following word. The combination is considered a single brivla (i.e. it is treated as just one word). ZEI+BU grabs back to the last ZEI, brivla+SA grabs back to the last brivla, which may consume a whole ZEI clause.
  5. BU binds with the preceding word. The combination is considered a single word of selma'o BY. SA+BU grabs back to the last BU, SA+BY grabs back to the last word+BU, consuming it entirely.
  6. ZOI uses the following word as a delimiting word and binds with it and further text until the same word is repeated, inclusive of both delimiters. Both delimiter words lose their grammatical function. Neither delimiter can be elided. The combination is considered a single word of the pseudo selma'o any-string (which acts as a sumti in all respects), except for SA matching purposes, where it retains the selma'o ZOI.
  7. SI erases the preceding word. This construct can appear anywhere in the parse (or be removed completely) and has no affect on the grammar. SI at the beginning of text have no effect, but are not in error.
  8. SA erases the preceding text back until it sees a word of the same selma'o as the word that follows SA, which replaces it. Words whose selma'o has been changed to any-word or any-string are invisible to SA for purposes to decided what to erase; they are erased as any other word would be. If a word of the same selma'o is not found (which will always be the case with SI and SU), it erases back to the beginning of text. Multiple SA before a word erase back to successively further instances of the same selma'o, one for each SA. SA at the beginning of text have no effect, but are not in error. To back out of a SA spoken in error, simply follow the SA with the word that preceded it.
  9. SU erases all words back to the beginning of text. More precisely, "su" erases back to the previous word of selma'o NIhO, LU, TUhE, or TO. The construct has no affect on the grammar and may be removed completely. SU at the beginning of text have no effect, but are not in error.
  10. FAhO terminates the text. No words are read to the right of FAhO, unconditionally. This means FAhO+BU is not the FAhO letteral.

Marking Words

  • BAhE marks the following word but does not change its meaning. BAhE cannot be used to mark BU, BU wins.
  • Attitudinals (UI and CAI cmavo) mark the previous word, quoted word, LOhU-quote, ZEI-lujvo, lerfu word, or ZOI-phrase, but do not change its nature and do not bind with it. One NAI can follow any UI or CAI cmavo. Attitudinals do not blend into a single word with the word they modify, but remain as separate words for the purposes of magic words that come after them. Multiple UI cmavo may be used in succession. They may also be used at the beginning of text.
  • DAhO, FUhE, and FUhO are the same as UI, but do not absorb a following NAI.

Examples

Subject Phrase Result Comments
lo'u co co co le'u si Nothing
lo'u co co le'u sa lo'u si Unclosed lo'u
lo'u co co co le'u bu The letter "co co co"
lo'u co co le'u bu co le'u Error co le'u outside of a lo'u quote
lo'u co co co le'u si bo le'u Error bo le'u outside of a lo'u quote
lo'u co le'u si si si le'u Error le'u outside of a lo'u quote
lo'u co co zo le'u co le'u Error "co le'u" outside of a lo'u...le'u quote
broda .y. bu broda + the letter y
zoi si stuff si "stuff"
da zoi sa da joi de Error Unclosed zoi
da zei fa'o Lujvo of da and fa'o
zoi si doi do Error Unclosed zoi
zo da si Nothing
co zo da si si Nothing
co co zo da si si Error One bare co left
da zei de bu Letter "da type of de" You're going to hell if you actually use this
bu zei de Error Nothing for bu to use
zo bu zei de "bu" type-of de
ba'e bu "ba'e" letter
broda zei brode si brodi brodi
zei zei zei Error Nothing for the leftmost zei to bind to
da zei zei da type-of zei
broda ba'e si broda
broda ba'e da si da broda ba'e da
zo da bu The letter "da"
zoi zoi That letter that you use between a user id and a host name in an e-mail address zoi bu @
broda brode si bu The letter broda
zoi zoi stuff zoi si Nothing
zoi zoi lots of stuff zoi sa zoi si Open zoi The delimiter is si
le broda sa le si Nothing sa leaves le, which si eats
mi ba'e Error Nothing for ba'e to mark
bu mi Error Nothing for bu to bind to
fa'o si Nothing FAhO ends all text *
lu fa'o li'u Unclosed lu *
zoi vy fa'o vy "fa'o" Contents of ZOI are ignored by meta-syntax *


(*According to purpleposeidon. The rumors of me being full of crap are crap.)

Terminology

Some people think that "Magic Words" is not a particularly good term, as it would necessarily end up in formal descriptions of this particular part of the grammar. The following replacements have been suggested:

  • Extra-syntactical word. (ie. a word outside the regular grammar)
  • Meta-syntactical word.
  • Super-syntactical word. (ie. a word that works on a higher level than the regular phrase structure rules)

History

Advanced
Information Version
Thu 28 of Aug, 2014 02:13 GMT durka42 from 69.249.31.89 semicolons are awesome 47
Thu 28 of Aug, 2014 02:02 GMT durka42 from 69.249.31.89 typo 46
Sun 15 of Jun, 2014 18:40 GMT durka42 from 50.77.84.234 add weasel word to BAhE note, and demote LEhU to magic word assistant 45
Sun 08 of Jun, 2014 19:18 GMT mukti from 216.194.27.154 44
Thu 05 of Jun, 2014 12:17 GMT mukti from 68.173.146.212 Ask for clarification 43
Sun 01 of Jun, 2014 21:20 GMT mukti from 68.173.146.212 SA erasure depends on following word, so "SA+brivla", not "brivla+SA" 42
Wed 09 of Feb, 2011 17:28 GMT alyn.post from 68.35.165.60 We're not savages around here, put magic words in alphabetical order. 41
Wed 09 of Feb, 2011 17:24 GMT alyn.post from 68.35.165.60 de-link controversial 40
Wed 09 of Feb, 2011 17:24 GMT alyn.post from 68.35.165.60 WTF zei. 39
Wed 09 of Feb, 2011 17:22 GMT alyn.post from 68.35.165.60 describe interesting interaction between le'u/bu and sa/si/su 38
Wed 09 of Feb, 2011 15:57 GMT alyn.post from 68.35.165.60 document unique cases. I'm not sure these behaviors are worth keeping, but here they are until then. 37
Wed 09 of Feb, 2011 14:14 GMT alyn.post from 68.35.165.60 This rule doesn't quite describe the desired behavior, remove it until I can express precedence and associativity of Magic Words. 36
Tue 08 of Feb, 2011 18:00 GMT alyn.post from 173.10.243.253 Create a main article for each magic word. 35
Mon 07 of Feb, 2011 17:52 GMT alyn.post from 173.10.243.253 Add an additional meta rule: pseudo word construction happens before right binding. 34
Mon 07 of Feb, 2011 13:24 GMT alyn.post from 69.96.208.86 .i zo bu se sreci'a .i zo by drani ki'e xorxes 33
Thu 03 of Feb, 2011 15:57 GMT alyn.post from 68.35.165.60 also describe FAhO + SU/SA/SI 32
Tue 01 of Feb, 2011 21:05 GMT alyn.post from 68.35.165.60 minor terminology corrections. 31
Tue 01 of Feb, 2011 20:55 GMT alyn.post from 68.35.165.60 note that zoi delimiters cannot be elided. 30
Tue 01 of Feb, 2011 17:50 GMT alyn.post from 68.35.165.60 A few clarifications and minor errata changes to SI, SA, and FAhO. 29
Thu 13 of Jan, 2011 20:51 GMT alyn.post from 173.10.243.253 clarify BAhE handling. 28
Fri 14 of May, 2010 06:15 GMT purpleposeidon from 99.91.40.55 fa'o notes 27
Mon 06 of Dec, 2004 19:49 GMT rlpowell from 64.241.242.18 26
Fri 26 of Nov, 2004 22:23 GMT rlpowell from 64.81.49.171 25
Thu 25 of Nov, 2004 17:57 GMT arj from 129.241.222.49 Added terminology section. rlpowell, please revert and move to another page if this is your turf. 24
Thu 25 of Nov, 2004 05:57 GMT rlpowell from 64.81.49.171 23
Mon 15 of Nov, 2004 05:09 GMT rlpowell from 64.81.49.171 22
Mon 15 of Nov, 2004 02:34 GMT rlpowell from 64.81.49.171 21
Mon 15 of Nov, 2004 00:26 GMT rlpowell from 64.81.49.171 20
Sun 14 of Nov, 2004 04:11 GMT rlpowell from 64.81.49.171 19
Sun 14 of Nov, 2004 00:26 GMT rlpowell from 64.81.49.171 18
Sun 14 of Nov, 2004 00:01 GMT rlpowell from 64.81.49.171 17
Sat 13 of Nov, 2004 23:46 GMT rlpowell from 64.81.49.171 16
Tue 09 of Nov, 2004 23:06 GMT rlpowell from 198.6.50.155 15
Tue 09 of Nov, 2004 20:58 GMT rlpowell from 198.6.50.155 14
Tue 09 of Nov, 2004 19:36 GMT xorxes from 200.49.74.2 13
Sun 07 of Nov, 2004 06:39 GMT rlpowell from 64.81.49.171 12
Sun 07 of Nov, 2004 06:10 GMT rlpowell from 64.81.49.171 11
Sun 07 of Nov, 2004 05:54 GMT rlpowell from 64.81.49.171 10
Sun 07 of Nov, 2004 05:45 GMT rlpowell from 64.81.49.171 9
Sun 07 of Nov, 2004 05:19 GMT rlpowell from 64.81.49.171 8
Sun 07 of Nov, 2004 04:51 GMT rlpowell from 64.81.49.171 7
Sun 07 of Nov, 2004 02:24 GMT rlpowell from 64.81.49.171 6
Sun 07 of Nov, 2004 02:13 GMT rlpowell from 64.81.49.171 5
Sun 07 of Nov, 2004 00:37 GMT rlpowell from 64.81.49.171 4
Sun 07 of Nov, 2004 00:04 GMT rlpowell from 64.81.49.171 3
Sat 06 of Nov, 2004 23:28 GMT rlpowell from 64.81.49.171 2
Sat 06 of Nov, 2004 22:53 GMT rlpowell from 64.81.49.171 1
Show PHP error messages