Vocabulary/ModifierTrains

From J Wiki
Jump to: navigation, search

Modifier trains are sequences of words that combine without visible operators to produce adverbs and conjunctions.

Train Part of speech Interpretation
N0 V1 N2 executed to produce a noun
V0 V1 V2
N0 V1 V2
verb creates a fork
V0 V1 C2 conj V0 V1 (u C2 v)
A0 V1 V2 adv (u A0) V1 V2
C0 V1 V2 conj (u C0 v) V1 V2
C0 V1 C2 conj (u C0 v) V1 (u C2 v)
A0 A1 V2 conj (u A0) (v A1) V2
A0 A1 A2 adv ((u A0) A1) A2
C0 A1 A2 conj ((u C0 v) A1) A2
N0 C1 N2 executed to produce any part of speech
N0 C1 V2 executed to produce any part of speech
N0 C1 A2 adv N0 C1 (u A2)
N0 C1 C2 conj N0 C1 (u C2 v)
V0 C1 N2 executed to produce any part of speech
V0 C1 V2 executed to produce any part of speech
V0 C1 A2 adv V0 C1 (u A2)
V0 C1 C2 conj V0 C1 (u C2 v)
A0 C1 N2 adv (u A0) C1 N2
A0 C1 V2 adv (u A0) C1 V2
A0 C1 A2 conj (u A0) C1 (v A2)
A0 C1 C2 conj (u A0) C1 (u C2 v)
C0 C1 N2 conj (u C0 v) C1 N2
C0 C1 V2 conj (u C0 v) C1 V2
C0 C1 A2 conj (u C0 v) C1 (v A2)
C0 C1 C2 conj (u C0 v) C1 (u C2 v)
N0 A1 executed to produce any part of speech
N0 C1 adv N0 C1 u
V0 A1 executed to produce any part of speech
V0 N1 executed to produce a noun
V0 V1 verb creates a hook
V0 C1 adv V0 C1 u
A0 V1 adv (u A0) V1
A0 A1 adv (u A0) A1
A0 C1 adv (u A0) C1 u (adverbial hook)
C0 N1 adv u C0 N1
C0 V1 adv u C0 V1
C0 A1 conj (u C0 v) A1
C0 C1 conj (u C0 v) (u C1 v)


Longer forks/trains

A non-modifier fork or hook (train) with 4 or more tines are grouped in 3 from right

(v0 v1 v2 v3 v4) --> (v0 v1 (v2 v3 v4)) NB. implied parentheses

modifier/invisible trains with 4 or more tines are explicitly grouped in 3 from left

(v0 ` ` `: 6) NB.--> (v C C C N) --> ((v0 ` `) `: 6) = ((v0 C C) C N) -> ((v0 C (uCv)) C N) -> C C N -> uCv (C N)

(v0 ` `) `: 6

mixed modifer/traditional trains of longer length rules

Long(er than 3) modifier trains will sometimes interrupt and sometimes allow the formation of verb phrases. Traditional verb/noun trains/forks can be combined within a modifier train. Auto-verb-phrase parsing refers to a fully bound sequence of verb/nouns and modifiers, such as uA uCv or uCvAACv that usually can be typed sequentially

  1. Modifier trains that start with C(onjunction) interrupt verb phrase parsing on 3rd (from left) term. Except for CVV, which allows verb phrase building on right V, but does not allow it on middle V.
  2. The other modifier trains allow auto verb phrase building on 3rd term.
  3. Modifier trains that start with V or N can auto-verb-phrase-group on the left starting V or N.
  4. NVV, VV, VVV trains form at lower priority than modifier trains. But when verb phrases are allowed, they have priority over modifier train formation.
  5. interrupting verb phrase formation means greedily completing a 3-long modifier train
@ @ + % #  NB. Modifier start of train @@ must capture 3rd completing term.  (CC) will never auto-group itself because it is only 2 terms long.

(@ @ +) % #

+/ % # @ @  NB. VVV to left will autogroup. VCC result.

(+/ % #) @ @

  1 + = +-@: NB. Odd number of v/n to left a conjunction forms an adverb with verb fork as bound parameter

(1 + = + -)@:

@@+@-  NB. uCn verb phrase +@- did not form because of 3rd item greed rule.

(@ @ +) @ -


but the train forming modifier trains (AV AAV AVV CVV VVC) "tend to" defer to VVV formation:


]: ]: -/%#

]: ]: (-/ % #)

]: -~ -/ % #  NB. verb phrases aloud to freely form on AV or AVV "start" (left) of modifier train"

]: (-~) (-/ % #)


@@]: + -  NB. CCA exists and has priority over to its right AVV

(@ @ ]:) + -

@@% + - NB. CCV has left priority over VVV (creates (CA)VV -> CVV)

(@ @ %) + -

 @  + -~ % $ # NB. CVV not being prioritized.  Instead VVV is prioritized. CVV is "leftover" binding

(@ + (-~))(% $ #)

@   - % $ #  NB. Again VVV prioritized and leftover forms modifier train.

@ - (% $ #)

@: - + = +-# NB. VV(VVV) prioritized

@: - (+ = + - #)

@ @ ]: + - % $ #

(@ @ ]:)(+ - % $ #)

(@ @ ]:) + - % $ 

(@ @ ]:) + (- % $)


+ -/ % # @ NB. VVC with even number of verbs to left of Conj.

+ (-/ % #) @

+ -/ % # # @  NB. odd number of verbs to left forms an adverb fork@

(+ -/ % # #)@


]: ]: -@^  %// NB. an even number of verbs after AA, binds the conjunction with rightmost term.  Equivalent here to (]: %// -@^).  A A V allows Vs to be a formed verb phrase.  

(]: ]: (-@^))(%//)

+@- @ @ NB. verb phrases can be formed at start/left of modifier train. ie. if leftmost term is verb/noun

+@- @ @

  +/ @ @ 

+/ @ @

@-@% NB. but if it doesn't start with verb/noun, verb phrases defer to greedy modifier rule.

(@ - @)%