# # j a p a n e s e . p y # TITLE = "*title" END = -1 noun1 = {TITLE: "Noun1", # book table top 1: [("hon",END), ("taberu",END),("ue",END)] } adjective = {TITLE: "Adjective", # big red 1: [("ookii",END), ("akai",END)] } preposition = {TITLE: "Preposition", # on of 1: [("ni",END), ("no",END)] } noun2 = {TITLE: "Noun2", 1: [(adjective, 1), (noun1, END)] } prepPhrase = {TITLE: "Prepositional Phrase", 1: [(noun2, 2)], 2: [(preposition, END)] } noun3 = {TITLE: "Noun3", 1: [(noun2, END), (prepPhrase, 1)], 2: [(noun2, END)] } prepPhrase[1] = [(noun3,2)] # Make prepPhrase circular