diff options
| author | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2017-10-31 12:54:34 -0300 |
|---|---|---|
| committer | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2017-10-31 12:54:53 -0300 |
| commit | c5cda1252f8b3636a5813f3c20a306438d81e112 (patch) | |
| tree | e409250d9b34f342b0fd023a63cafac8c39911d6 /RGens/data/sample-grammars | |
| parent | 2aa0fa1d83411855d2d3388809f1a0485513128f (diff) | |
Update sample grammars
Diffstat (limited to 'RGens/data/sample-grammars')
| -rw-r--r-- | RGens/data/sample-grammars/buzzword.gram | 5 | ||||
| -rw-r--r-- | RGens/data/sample-grammars/career.gram | 44 | ||||
| -rw-r--r-- | RGens/data/sample-grammars/city.gram | 2 | ||||
| -rw-r--r-- | RGens/data/sample-grammars/college.gram | 249 | ||||
| -rwxr-xr-x | RGens/data/sample-grammars/diablo-ii/diabloii.gram | 14 | ||||
| -rwxr-xr-x | RGens/data/sample-grammars/diablo-ii/diabloiiitems.gram | 46 | ||||
| -rw-r--r-- | RGens/data/sample-grammars/dungeondressing/bedroom.gram | 158 | ||||
| -rw-r--r-- | RGens/data/sample-grammars/elementals.gram | 237 | ||||
| -rwxr-xr-x | RGens/data/sample-grammars/fantasy-locations.gram | 11 | ||||
| -rw-r--r-- | RGens/data/sample-grammars/organization.gram | 5 | ||||
| -rwxr-xr-x | RGens/data/sample-grammars/part-creature.gram | 253 | ||||
| -rwxr-xr-x | RGens/data/sample-grammars/pokeattacks.gram | 3 | ||||
| -rw-r--r-- | RGens/data/sample-grammars/rtwiki/color.gram | 3 | ||||
| -rwxr-xr-x | RGens/data/sample-grammars/zadrons-pouch.gram | 19 |
14 files changed, 683 insertions, 366 deletions
diff --git a/RGens/data/sample-grammars/buzzword.gram b/RGens/data/sample-grammars/buzzword.gram index 9aaa82f..d25331f 100644 --- a/RGens/data/sample-grammars/buzzword.gram +++ b/RGens/data/sample-grammars/buzzword.gram @@ -234,9 +234,10 @@ pragma export-rule [buzzword-adjective] pragma export-rule [buzzword-job] -[buzzword-fused] [buzzword-stem] [buzzword-suffix] +[buzzword-fused] [act+buzzword-fused] + +[act+buzzword-fused] [buzzword-stem] [buzzword-suffix] -pragma despace-rule [buzzword-fused] pragma export-rule [buzzword-fused] [buzzword-stem] aggregat diff --git a/RGens/data/sample-grammars/career.gram b/RGens/data/sample-grammars/career.gram index b1504e0..63142f5 100644 --- a/RGens/data/sample-grammars/career.gram +++ b/RGens/data/sample-grammars/career.gram @@ -2,39 +2,45 @@ pragma initial-rule [career-tech-desc] -pragma prefix-with [career-tech-desc] [career-prefsuf] +pragma prefix-with [career-tech-desc] [career-tech-desc-pref] pragma suffix-with [career-tech-desc] [career-tech-descsuff] pragma suffix-with [career-tech-desc] [career-tech-descsuff] pragma suffix-with [career-tech-desc] [career-tech-descsuff] -[career-tech-descsuff] (to the [career-techname] ) +[career-tech-desc-pref] [career-prefsuf] of the + +[career-tech-descsuff] (reports to the [career-techname] ) (boss of [career-techname] ) (subordinate of [career-techname] ) (co-worker of [career-techname] ) (office rival of [career-techname] ) (secretly [career-techname] ) +[career-techname] [career-tech] + [career-tech] , [full-name-and-title] + +pragma export-rule [career-techname] + [career-tech] [career-tech2] [career-tech2] [career-tech2] [career-tech2] [career-tech2] [career-tech2] - [career-tech2] and [career-tech2] - [career-tech2] , [career-tech2] and [career-tech2] + [quote-career-tech] and [quote-career-tech] + [quote-career-tech] , [quote-career-tech] and [quote-career-tech] -pragma prefix-with [career-tech] [career-prefsuf] +pragma prefix-with [career-tech] [career-tech-desc-pref] pragma export-rule [career-tech] -[career-techname] [career-tech] - [career-tech] , [full-name-and-title] +[quote-career-tech] [ [career-tech2] ] -pragma export-rule [career-techname] +pragma despace-rule [quote-career-tech] -[career-tech2] [act-career-tech] (to the [career-tech] ) - [act-career-tech] (to [full-name-and-title] ) +[career-tech2] [act-career-tech] (reports to the [career-tech] ) + [act-career-tech] (reports to [full-name-and-title] ) [act-career-tech] paper pusher computer [software-career-type] @@ -55,11 +61,14 @@ pragma export-rule [career-techname] corporate spy trade show booth bunny evil human resources - internet + internet [software-career-type] network [software-career-type] +pragma prefix-with [act-career-tech] [career-prefix] pragma suffix-with [act-career-tech] [career-sufsuf] +pragma export-rule [act-career-tech] + [bug-term] terminator exterminator hunter @@ -81,7 +90,18 @@ pragma suffix-with [act-career-tech] [career-sufsuf] [career-prefsuf] [career-suffix] [career-prefix] [career-suffix] -[career-sufsuf] , [career-prefsuf] +[career-sufsuf] , [career-prefsuf] of [career-department] + +[career-department] engineering + design + administration + programming + publishing + operations + HR + networking + accounting + management [career-prefix] executive assistant diff --git a/RGens/data/sample-grammars/city.gram b/RGens/data/sample-grammars/city.gram index 0cb19e2..bfe9026 100644 --- a/RGens/data/sample-grammars/city.gram +++ b/RGens/data/sample-grammars/city.gram @@ -8,8 +8,8 @@ pragma initial-rule [city] [act-other-city] [town-suffix] [town-suffix] -pragma prefix-with [other-city] [town-prefix] pragma despace-rule [other-city] +pragma prefix-with [other-city] [town-prefix] [act-other-city] [town-name] [sw-color-phrase] diff --git a/RGens/data/sample-grammars/college.gram b/RGens/data/sample-grammars/college.gram index 2ae701a..db26552 100644 --- a/RGens/data/sample-grammars/college.gram +++ b/RGens/data/sample-grammars/college.gram @@ -1,22 +1,37 @@ -[college-announcement] next [course-time] , [university] will offer [quote-course] - the [university] class [quote-course] has been cancelled due to lack of interest - starting next [course-time] , incoming freshmen at [university] will be [required] to take [quote-course] - starting next [course-time] , incoming freshmen at [university] will no longer be [required] to take [quote-course] - students are [required] to take [quote-course] - students are no longer [required] to take [quote-course] - [quote-course] will no longer be offered at [university] due to [lack-reason] +[college-announcement] next [course-time] , [university] will offer [quote-course] to [students] + the [university] class [quote-course] has been cancelled due to [lack-reason] + starting next [course-time] , incoming [students] at [university] will [all-req] to take [quote-course] + [students] will [all-req] to take [quote-course] + [quote-course] will no longer be offered at [university] next [course-time] due to [lack-reason] [quote-course] is the most popular [course-level] class at [university] - due to overwhelming popularity, [add-sec] of [quote-course] will be offered at [university] next [course-time] - not one single student signed up for [plural-univ] [quote-course] last semester - a [poll] of students at [university] revealed [quote-course] is the [popular] popular [class-type] offered + due to overwhelming [popularity] , [add-sec] of [quote-course] will be offered at [university] next [course-time] + not one single [student] signed up for [plural-univ] [quote-course] last [course-time] + a [poll] of [students] at [university] revealed [quote-course] is the [popular] popular [class-type] offered pragma initial-rule [college-announcement] +[all-req] be [required] + no longer be [required] + +[students] students + +pragma prefix-with [students] [course-level] +pragma prefix-with [students] [course-adj] + +[student] student + +pragma prefix-with [student] [course-level] +pragma prefix-with [student] [course-adj] + +[popularity] popularity + popularity among [students] + [plural-univ] [university] 's pragma despace-rule [plural-univ] [lack-reason] lack of interest + lack of interest among [students] lack of teachers lack of space @@ -27,6 +42,8 @@ pragma export-rule [quote-course] [required] required strongly encouraged + mildly encourage + mildly discouraged strongly discouraged forbidden @@ -37,13 +54,23 @@ pragma export-rule [quote-course] spring winter summer - year + +pragma suffix-with [course-time] [course-time-type] + +[course-time-type] year semester + trimester -[course-level] graduate - undergraduate +[course-level] [course-level1] [class-year] + +[course-level1] graduate + undergraduate liberal arts + engineering + stem + +pragma suffix-with [course-level1] [class-year] [class-year] freshmen sophmore @@ -53,6 +80,7 @@ pragma export-rule [quote-course] [poll] poll survey + questionnaire [popular] least second-least @@ -63,81 +91,74 @@ pragma export-rule [quote-course] course lecture lab - -[course-adjnoun1] [course-prefixednoun] - -pragma prefix-with [course-adjnoun1] [course-adj] -pragma prefix-with [course-adjnoun1] [course-adj] - -[course-adjnoun] [course-adjnoun1] - [course-adjnoun1] - [course-adjnoun1] - [course-adjnoun1] - [course-adjnoun1] and [course-adjnoun1] - [course-adjnoun1] , [course-adjnoun1] and [course-adjnoun1] - [course-adjnoun1] or [course-adjnoun1] - [course-adjnoun1] , [course-adjnoun1] or [course-adjnoun1] + practical [college-course] [course-adjnoun] - [course-adjnoun] : [course-ending] - [course-adjnoun] - [course-group] [course-life] - [course-group2] [course-adjnoun] [course-life] - [course-group] [course-life] since [1500..2010] - [course-group2] [course-life] : [course-ending] - contemporary [course-group2] [course-life] and [course-life] - contemporary [course-group2] [course-life] : [course-ending] + [course-adjnoun-group] + [course-life-phrase] + [course-group] [course-life-phrase] + [course-group2] [course-adjnoun-group] [course-life-phrase] + [course-group2] [course-life-phrase] + contemporary [course-group2] [course-life-phrase] transforming the [course-group] experience - [course-group] [course-life] - [course-group2] [course-life] - [course-adjnoun] the [course-group] [course-movement] - [course-adj] [course-life] : [course-ending] - [course-adjnoun] in modern [course-medium] - [course-adjnoun] [course-suffix] : [course-ending] - [course-adjnoun] + [course-adj] [course-life-phrase] + [course-adjnoun-group] in [course-nounprefix] [course-medium] the [course-adj] dimension of [course-group] [course-medium] - [course-topic] in [course-group2] [course-medium] : [course-ending] + [course-topic] in [course-group2] [course-medium] [course-topic] and [course-topic] - [course-group2] [course-medium] interpretation: [course-ending] + [course-group2] [course-medium] interpretation [course-group2] [course-medium] as a [course-adj] genre [course-group] [course-medium] - [course-life] of [course-group2] [course-adjnoun] : [course-ending] - [course-popculture] : [course-ending] - [course-popculture] [course-suffix] : [course-ending] - [course-adjnoun] and [theory] - [course-action] : [course-ending] - [course-action] [course-suffix] : [course-ending] - [course-nounprefix] [course-ancient] [course-medium] : [course-ending] - ethnicity [course-suffix] : the [course-group] [condition] + [course-popculture] + [course-adjnoun-group] and [theory] + [course-action] + [course-nounprefix] [course-group] [course-medium] + ethnicity masterpieces of [course-group] [course-medium] - [course-buzzword2] , [course-buzzword2] and [course-buzzword2] [course-suffix] : [course-ending] - [course-buzzword2] , [course-buzzword2] and [course-buzzword2] in [course-group2] [course-medium] : [course-ending] - [course-event] : [course-ending] + [course-buzzword2] , [course-buzzword2] and [course-buzzword2] + [course-buzzword2] , [course-buzzword2] and [course-buzzword2] in [course-group2] [course-medium] + [course-event] [course-event] as [course-explored] in [course-group] [course-medium] [university-subject] as [course-explored] in [course-group] [course-medium] - [course-impactof] : [course-ending] + [course-impactof] [course-static] [course-static] pragma prefix-with [college-course] [course-prefix] + +[course-colonending] : [course-ending] + +pragma suffix-with [college-course] [course-colonending] pragma suffix-with [college-course] [course-suffix] pragma export-rule [college-course] +[course-adjnoun-group] [course-adjnoun] + [course-adjnoun] and [course-adjnoun] + [course-adjnoun] , [course-adjnoun] and [course-adjnoun] + +[course-disjoin-adjnoungroup] [course-adjnoun] or [course-adjnoun] + [course-adjnoun] , [course-adjnoun] or [course-adjnoun] + +[course-adjnoun] [course-prefixednoun] + +pragma prefix-with [course-adjnoun] [course-adj] +pragma prefix-with [course-adjnoun] [course-adj] + [condition] condition experience -[course-static] [course-env1] : [course-prefix] [course-env2] - [course-env3] : policy [course-suffix] +[course-static] [course-env1] + [course-env3] the meaning of life as [course-explored] in [course-group] [course-medium] - the [course-impact] of [course-group2] [thinker-type] on [course-contemporary] [university-subject] : [course-ending] - the [rise] of [course-group2] [thinker-type] in [course-contemporary] [university-subject] : [course-ending] - [course-ancient] [course-medium] as the [roots] of [course-contemporary] [university-subject] - [course-buzzword2] , [course-buzzword2] and [course-buzzword2] as [course-explored] in [course-contemporary] [films] : [course-ending] - the history of [course-group2] [course-life] : [course-ending] + the [course-impact] of [course-group2] [thinker-type] on [course-nounprefix] [university-subject] + the [rise] of [course-group2] [thinker-type] in [course-nounprefix] [university-subject] + [course-group] [course-medium] as the [roots] of [course-nounprefix] [university-subject] + [course-buzzword2] , [course-buzzword2] and [course-buzzword2] as [course-explored] in [course-nounprefix] [films] + the history of [course-group2] [course-life-phrase] the [archetype] of the [quest] in [course-group] [course-medium] - [cross-cultural] [studies] [course-group2] [course-life] + [cross-cultural] [studies] [course-group2] [course-life-phrase] [course-event] the African diaspora the Harlem renaissance @@ -217,6 +238,12 @@ pragma export-rule [college-course] [experience] arts experience +[course-prefixednoun] [course-noun] + post- [course-noun] + pre- [course-noun] + +pragma despace-rule [course-prefixednoun] + [course-noun] diversity globalism equality @@ -246,22 +273,17 @@ pragma export-rule [college-course] pragma prefix-with [course-noun] [course-nounprefix] -[course-prefixednoun] [course-noun] - post- [course-noun] - pre- [course-noun] - -pragma despace-rule [course-prefixednoun] - [course-nounprefix] early middle late classical historical modern + [course-contemporary] + [course-adj] [course-adj] progressive liberal - liberal aesthetic postmodern feminist @@ -305,28 +327,27 @@ pragma despace-rule [course-prefixednoun] concepts in the highlights of -[course-suffix] in the postmodern era - in the postmodern world - in the modern age - in modern society - in modern America +[course-suffix] in the [course-nounprefix] era + in the [course-nounprefix] world + in the [course-nounprefix] age + in [course-nounprefix] society + in [course-nounprefix] America in today's society in the American landscape in the united states in the 21st century in recent times in the real world - in the [course-adj] world [course-ending] ideas in conflict ideas in transition - critical issues facing the [course-contemporary] [course-person] + critical issues facing the [course-nounprefix] [course-person] a process approach [course-buzzword] , [course-buzzword] and [course-buzzword] - a [course-metaphor] of [course-adjnoun] [course-suffix] - a [course-metaphor] of [course-ancient] [course-suffix] + a [course-metaphor] of [course-adjnoun-group] [course-suffix] + a [course-metaphor] of [course-group] [course-suffix] a [course-metaphor] [course-explored] in American [course-medium] - a [course-metaphor] [course-explored] in [course-contemporary] [course-medium] + a [course-metaphor] [course-explored] in [course-nounprefix] [course-medium] what is to be learned from it? an interdisciplinary [study] from [last-name] to [last-name] @@ -336,13 +357,13 @@ pragma despace-rule [course-prefixednoun] [course-buzzword] and [course-buzzword] the big picture a paradigm shift - [modern] [theories] + [course-nounprefix] [theories] myth and reality the untold story [journey] [discovery] - -[modern] modern - contemporary + the [course-group] [condition] + [course-prefix] [course-env2] + policy [theories] ideas theories @@ -359,15 +380,20 @@ pragma despace-rule [course-prefixednoun] [study] study approach -[course-group] [course-group1] [course-group2] - [course-group1] [course-group2] - [course-group1] [course-group2] - [course-group1] [course-group2] - [quote-political] +[course-group] [course-groups] + [course-groups] + [course-groups] + [course-groups] + " [org-political] " + +[course-groups] [course-gengroup] -[quote-political] " [org-political] " +[course-gengroup] [course-group1] + [course-group2] + [course-ancient] -pragma despace-rule [quote-political] +pragma prefix-with [course-groups] [course-gengroup] +pragma suffix-with [course-groups] [course-gengroup] [course-group1] gay and lesbian homosexual @@ -431,6 +457,26 @@ pragma despace-rule [quote-political] Chinese native American +[course-life-phrase] [act-course-lifephrase] + [act-course-lifephrase] since [700..2010] + [act-course-lifephrase] as influenced by [course-life-influence] + [act-course-lifephrase] as viewed through the lens of [course-life-influence] + +[influence-type] as influenced by + as viewed through the lens of + +[act-course-lifephrase] [course-lives] + +pragma suffix-with [act-course-lifephrase] [course-group] +pragma suffix-with [act-course-lifephrase] [course-adjnoun-group] + +[course-life-influence] [course-event] + [course-adjnoun-group] + +[course-lives] [course-life] + [course-life] and [course-life] + [course-life] , [course-life] and [course-life] + [course-life] life literature music @@ -560,8 +606,8 @@ pragma despace-rule [quote-political] Shakespeare's [comedy] 'the scarlet letter; 'Seinfeld' - classic American literature - classic [course-ancient] [literature] + [course-nounprefix] American literature + [course-nounprefix] [course-group] [literature] political cartoons pornography 'the jerry springer show' @@ -577,10 +623,9 @@ pragma despace-rule [quote-political] 21st century 20th century -[course-impactof] the [course-impact] of [course-ancient] [course-medium] on [course-group] [course-medium] [course-suffix] - the [course-impact] of [course-ancient] [course-medium] on [course-contemporary] [university-subject] - the [course-impact] of [course-ancient] [course-medium] on [course-contemporary] [course-adjnoun] - the [course-impact] of [course-group] [course-medium] on [course-contemporary] [course-adjnoun] +[course-impactof] the [course-impact] of [course-group] [course-medium] on [course-group] [course-medium] + the [course-impact] of [course-group] [course-medium] on [course-nounprefix] [university-subject] + the [course-impact] of [course-group] [course-medium] on [course-nounprefix] [course-adjnoun-group] the [course-impact] of [course-group] [course-medium] on [university-subject] [course-impact] impact @@ -590,15 +635,17 @@ pragma despace-rule [quote-political] [university] [university-body] [university-suffix] -[university-body] [cardinal] [us-state] - central [us-state] +pragma export-rule [university] + +[university-body] [us-state] [us-president] [city] [real-city] [last-name] [person] + [full-name-and-title] -pragma export-rule [university] +pragma prefix-with [university-body] [cardinal] [university-suffix] university college diff --git a/RGens/data/sample-grammars/diablo-ii/diabloii.gram b/RGens/data/sample-grammars/diablo-ii/diabloii.gram index ef92817..f3ffbd7 100755 --- a/RGens/data/sample-grammars/diablo-ii/diabloii.gram +++ b/RGens/data/sample-grammars/diablo-ii/diabloii.gram @@ -1,13 +1,17 @@ [base-treasures] [base-treasure] - [base-treasure] as well as [base-treasure] - [base-treasure] or [base-treasure] - [base-treasure] , and [base-treasure] as well as [base-treasure] - [base-treasure] , [base-treasure] or [base-treasure] + [quote-treasure] as well as [quote-treasure] + [quote-treasure] or [quote-treasure] + [quote-treasure] , and [quote-treasure] as well as [quote-treasure] + [quote-treasure] , [quote-treasure] or [quote-treasure] pragma initial-rule [base-treasures] +[quote-treasure] ( [base-treasure] ) + +pragma despace-rule [quote-treasure] + [base-treasure] a(n) [item] - [non-item] + [non-item] [non-item] [money] [money] diff --git a/RGens/data/sample-grammars/diablo-ii/diabloiiitems.gram b/RGens/data/sample-grammars/diablo-ii/diabloiiitems.gram index ce84d5d..a2eb86a 100755 --- a/RGens/data/sample-grammars/diablo-ii/diabloiiitems.gram +++ b/RGens/data/sample-grammars/diablo-ii/diabloiiitems.gram @@ -66,9 +66,9 @@ pragma prefix-with [accoutrements] [acc-kind] [shields] buckler shield - [shield-size] shield - [shield-type] shield - [shield-size] [shield-type] shield + +pragma prefix-with [shields] [shield-type] +pragma prefix-with [shields] [shield-size] [shield-size] small large @@ -91,14 +91,14 @@ pragma prefix-with [accoutrements] [acc-kind] falchion claymore +pragma prefix-with [swords] [sword-kind] + [sword-kind] long broad short bastard two-handed -pragma prefix-with [swords] [sword-kind] - [clubs] club spiked club mace @@ -121,25 +121,29 @@ pragma prefix-with [swords] [sword-kind] halberd [axes] axe - [axe-size] axe - [axe-type] axe - [axe-size] [axe-type] axe + +pragma prefix-with [axes] [axe-type] +pragma prefix-with [axes] [axe-size] [axe-size] small large giant [axe-type] throwing - broad - battle - great + broad + battle + great + hand -[bows] arrow ( [diablo-amount] count) +[bows] arrow [quote-count] bow [bow-size] bow [bow-type] bow [bow-size] [bow-type] bow +pragma prefix-with [bows] [bow-type] +pragma prefix-with [bows] [bow-size] + [bow-size] short long @@ -148,7 +152,7 @@ pragma prefix-with [swords] [sword-kind] battle war -[crossbows] bolt ( [diablo-amount] count) +[crossbows] bolt [quote-count] crossbow [crossbow-type] crossbow @@ -157,16 +161,18 @@ pragma prefix-with [swords] [sword-kind] heavy [wands] wand - [wand-type] wand torch scepter - [wand-type] scepter + +pragma prefix-with [wands] [wand-type] [wand-type] bone yew [staves] staff +pragma prefix-with [staves] [staff-type] + [staff-type] short long gnarled @@ -174,8 +180,6 @@ pragma prefix-with [swords] [sword-kind] battle war -pragma prefix-with [staves] [staff-type] - [accessories] charm ring flag @@ -184,6 +188,8 @@ pragma prefix-with [staves] [staff-type] [gems] [gem-type] +pragma prefix-with [gems] [gem-quality] + [gem-quality] chipped flawed flawless @@ -196,8 +202,10 @@ pragma prefix-with [staves] [staff-type] sapphire topaz -pragma prefix-with [gems] [gem-quality] - [inscriptions] scroll rune book + +[quote-count] ( [diablo-amount] count ) + +pragma despace-rule [quote-count] diff --git a/RGens/data/sample-grammars/dungeondressing/bedroom.gram b/RGens/data/sample-grammars/dungeondressing/bedroom.gram index fea0e00..c1345d5 100644 --- a/RGens/data/sample-grammars/dungeondressing/bedroom.gram +++ b/RGens/data/sample-grammars/dungeondressing/bedroom.gram @@ -1,5 +1,4 @@ -[bedroom] you enter the [bedroom-type] and see a [bedroom-bed] with a [bedroom-person] lying on it. - you enter the [bedroom-type] and see a [bedroom-bed] with a [bedroom-person] lying in it. +[bedroom] you enter the [bedroom-type] and see a [bedroom-bed] with a [bedroom-person] [bedroom-lying] pragma initial-rule [bedroom] @@ -12,17 +11,162 @@ pragma initial-rule [bedroom] damp cave mountain glen deserted clearing + desert island + abandoned crypt + [fantasy-location-name] + [fantasy-location-name] + [fantasy-location-name] [bedroom-bed] king bed with luxury sheets messy pile of wet hay flea-infested sleeping bag + luxurious sleeping bag pentagram with candles freshly unearthed coffin tropical rope hammock + altar -[bedroom-person] half-orc prostitute - pile of moldy bones - mountain lion +pragma prefix-with [bedroom-bed] [unholy] +pragma prefix-with [bedroom-bed] [bed-prefix] + +[bed-prefix] ruined + ancient + legendary + +[unholy] unholy + holy + blessed + dammed + cursed + demonic + hallowed + unhallowed + sacred + +[bedroom-person] pile of [bone-status] bones jug of moonshine - kidnapped aristocrat - realistic sex doll + [bed-aliveperson] + [bed-aliveperson] + [bed-aliveperson] + [bed-aliveperson] + [bed-aliveperson] + [bed-aliveperson] + [bed-aliveperson] + [bed-aliveperson] + [bed-aliveperson] + [bed-aliveperson] + +[bedroom-lying] lying [onin] it + draped atop it + prostrated before it + [tied] to it + trapped in it + +[bed-aliveperson] [bed-arist] + [bed-doll] + [bed-prost] + [bed-slave] + [humanoid] + [creature] + +pragma prefix-with [bed-aliveperson] [bed-status] + +[bed-status] [bed-status1] + [bed-status2] + [bed-status1] [bed-status2] + [bed-status2] [bed-status1] + +[bed-status1] dead + decapitated + [status-alive] + [status-alive] + [status-alive] + [status-alive] + +[status-alive] unconcious + sleeping + normal + +[bed-status2] bleeding + badly wounded + uninjured + pale + burnt + +[tied] chained + tied + bound + +[onin] on + in + +[bed-bones] pile of [bone-status] [bones] + pile of [bone-status] [part-human] [bones] + +[bones] bones + flesh + viscera + skulls + +[bone-status] clean + old + fresh + moldy + dusty + bloody + +[bed-arist] kidnapped [aristocrat] + kidnapped [part-human] [aristocrat] + kidnapped [part-human] + +[aristocrat] aristocrat + prince + princess + king + queen + mercenary + merchant + +[bed-doll] sex doll + sex doll of a [part-human] + +pragma prefix-with [bed-doll] [realism] + +[realism] realistic + unrealistic + [beauty] + +[beauty] beautiful + pretty + cute + ugly + +pragma prefix-with [realism] creepily + +[bed-prost] prostitute + +pragma prefix-with [bed-prost] [part-human] + +[bed-slave] slave + escaped slave + +pragma prefix-with [bed-slave] [part-human] + +[bed-gender] male + female + +[part-human] [part-human1] + +pragma prefix-with [part-human] [bed-gender] + +[part-human1] [humanoid] + [half-human] + [half-human] , [half-human] + [quarter-human] + +[half-human] half- [humanoid] + +[quarter-human] quarter- [humanoid] + +pragma despace-rule [half-human] +pragma despace-rule [quarter-human] diff --git a/RGens/data/sample-grammars/elementals.gram b/RGens/data/sample-grammars/elementals.gram new file mode 100644 index 0000000..30d256f --- /dev/null +++ b/RGens/data/sample-grammars/elementals.gram @@ -0,0 +1,237 @@ +[elemental] elemental + elemental + elemental + [other-elementalcreatures] + [rs-elementype] + +pragma prefix-with [elemental] [elemental-types] +pragma prefix-with [elemental] [elemental-age] +pragma prefix-with [elemental] [great-less] +pragma suffix-with [elemental] [sgreat-less] + +pragma initial-rule [elemental] + +[other-elementalcreatures] archonmental + grue + weird + elementite swarm + genasi + half-elemental + elemental [creature] + [creature] + unraveler + necromental + archon + phantom + facet + wyrm + fiend + spirit + crystalle + spawn + minion + horror + horde + reactionals + elemental dragon + elemental knight + +[great-less] lesser + greater + advanced + +[sgreat-less] , [great-less] + +[rs-elementype] essling + esshound + esswraith + +[elemental-age] small + medium + large + huge + titanic + elder + monolithic + great + primal + eldritch + +[elemental-types] [nhelemental-types] + [nhelemental-types] + [nhelemental-types] + [nhelemental-types] + [nhelemental-types] + [nhelemental-types] + [hybrid-type] + +[nhelemental-types] [quote-type] + [quote-type] + [quote-type] / [quote-type] + [quote-type] / [quote-type] / [nhelemental-types] + +pragma export-rule [elemental-types] + +[hybrid-type] hybrid [hybrid-open] and [hybrid-close] + hybrid [hybrid-open] , [nhelemental-types] and [hybrid-close] + +[hybrid-open] ( [nhelemental-types] + +pragma despace-rule [hybrid-open] + +[hybrid-close] [nhelemental-types] ) + +pragma despace-rule [hybrid-close] + +[quote-type] ( [elemental-type] ) + +pragma despace-rule [quote-type] + +[elemental-type] [bare-elemental-type] + [bare-elemental-type] + [bare-elemental-type] + [bare-elemental-type] + [elemental-adv] [bare-elemental-type] + [elemental-adv] [bare-elemental-type] + [elemental-adv] [elemental-adv] [bare-elemental-type] + +[bare-elemental-type] [common-element] + [common-element] + [runescape-elemental] + [runescape-elemental] + [paraquasi-elemental] + [paraquasi-elemental] + [other-elemental] + +pragma export-rule [elemental-type] +pragma export-rule [bare-elemental-type] + +[common-element] fire + earth + water + air + +[elemental-adv] shadowy + clockwork + spacious + ethereal + blessed + cursed + ruined + stormy + tainted + chaotic + natural + deathly + astral + cosmic + bloody + soul- + icy + oozing + smoking + ashy + dusty + salty + steaming + forceful + radiant + empty + crystallized + frosted + silty + volcanic + sparking + fuming + blazing + grave + primal + rainy + sunny + angelic + demonic + devilish + sandy + dreaming + demonically-fused + wooden + sonic + decaying + growing + diseased + metallic + null + divine + oily + eldritch + +pragma export-rule [elemental-adv] + +[other-elemental] shadow + time + space + ether + light + storm + taint + ruin + darkness + grave + mist + pyre + rain + sun + sand + dream + wood + sonic + titanium + decay + growth + disease + crystal + metal + null + oil + +[runescape-elemental] mind + body + cosmic + chaos + nature + law + death + astral + blood + soul + +[paraquasi-elemental] [para-elemental] + [para-elemental] + [quasi-elemental] + [quasi-elemental] + [quasi-elemental] + [quasi-elemental] + [paraquasi-elemental] + +[para-elemental] ice + magma + ooze + smoke + +[quasi-elemental] ash + dust + salt + vacuum + mineral + radiance + steam + force + +[paraquasi-elemental] crystal + frost + clay + silt + obsidian + pumice + spark + fumes diff --git a/RGens/data/sample-grammars/fantasy-locations.gram b/RGens/data/sample-grammars/fantasy-locations.gram index 5b8bcef..1190d68 100755 --- a/RGens/data/sample-grammars/fantasy-locations.gram +++ b/RGens/data/sample-grammars/fantasy-locations.gram @@ -1,9 +1,7 @@ -[fantasy-location-name] [name1] [name2] - [name1] [name2] - [name1] [name2] - [name1] [name2] - [name1] [name1] [name2] - [name1] [name1] [name2] +[fantasy-location-name] [name2] + +pragma prefix-with [fantasy-location-name] [name1] +pragma prefix-with [fantasy-location-name] [name1] pragma initial-rule [fantasy-location-name] @@ -107,6 +105,7 @@ pragma initial-rule [fantasy-location-name] wind winter xanthous + [complete-color] [name2] beach bear diff --git a/RGens/data/sample-grammars/organization.gram b/RGens/data/sample-grammars/organization.gram index 15057c3..bac2309 100644 --- a/RGens/data/sample-grammars/organization.gram +++ b/RGens/data/sample-grammars/organization.gram @@ -91,8 +91,11 @@ pragma suffix-with [org-goalbody] [org-wayof] the [protect] women's suffrage [trademark+drug] + [trademark] [organization] - offering [quote-course] in college + [org-course] + +[org-course] offering [quote-course] in college making [quote-course] a mandatory course teaching [quote-course] in high school diff --git a/RGens/data/sample-grammars/part-creature.gram b/RGens/data/sample-grammars/part-creature.gram index bae4b8a..41bbb83 100755 --- a/RGens/data/sample-grammars/part-creature.gram +++ b/RGens/data/sample-grammars/part-creature.gram @@ -1,17 +1,33 @@ [full-creature] a(n) [creature-choice] - a(n) [creature-choice] fused with a(n) [creature-choice] - chimera of a(n) [creature-choice] , a(n) [creature-choice] and a [creature-choice] + a(n) [quote-creature] fused with a(n) [quote-creature] + chimera of a(n) [quote-creature] , a(n) [quote-creature] and a(n) [quote-creature] + +[quote-creature] ( [creature-choice] ) + +pragma despace-rule [quote-creature] [creature-choice] [creature] -pragma prefix-with [creature-choice] [characteristic] -pragma prefix-with [creature-choice] [ability] -pragma prefix-with [creature-choice] [characteristic] -pragma prefix-with [creature-choice] [ability] +pragma prefix-with [creature-choice] [characteristics] +pragma prefix-with [creature-choice] [abilities] +pragma prefix-with [creature-choice] [characteristics] +pragma prefix-with [creature-choice] [abilities] pragma initial-rule [full-creature] pragma export-rule [creature-choice] +[abilities] [ability] + [ability] + [ability] + [ability] + [quote-ability] and [quote-ability] + [quote-ability] and [quote-ability] + [quote-ability] , [quote-ability] and [quote-ability] + +[quote-ability] ( [ability] ) + +pragma despace-rule [quote-ability] + [ability] flying invisible silent @@ -21,11 +37,8 @@ pragma export-rule [creature-choice] swallow whole poisonous regenerating - [elemental-type] -breathing anti-magic petrifying - [elemental-type] -eating - [eating] frightful presence confusing flesh grinding @@ -33,7 +46,11 @@ pragma export-rule [creature-choice] rust acidic nauseating - [ability] and [ability] + [eating] + [elemental-type] -breathing + [elemental-type] -eating + [elemental-type] -immune + [elemental-type] -resistant [eating] [characteristic] -eating [creature] -eating @@ -43,6 +60,18 @@ pragma despace-rule [eating] # @TODO 10/26/17 Ben Culkin :CharacteristicAdditions # Add more templates and classes to the list +[characteristics] [characteristic] + [characteristic] + [characteristic] + [characteristic] + [quote-characteristic] and [quote-characteristic] + [quote-characteristic] and [quote-characteristic] + [quote-characteristic] , [quote-characteristic] and [quote-characteristic] + +[quote-characteristic] ( [characteristic] ) + +pragma despace-rule [quote-characteristic] + [characteristic] zombie vampire swarm @@ -50,19 +79,19 @@ pragma despace-rule [eating] barbarian wizard ninja - [were] robot rabid demonic awakened feral pirate - [partial-breed] gelatinous dire shadow rich - [characteristic] and [characteristic] + [partial-breed] + [were] + [elemental-adv] [characteristic] [were] were- [characteristic] were- [creature] @@ -88,16 +117,16 @@ pragma despace-rule [partial-breed] bee spider dragon - [elemental] - [elemental-type] - living [elemental-type] - [dungeon-mimic] dire penguin giant mini space hamster camel little girl classy kobold disenchanter + [elemental] + [elemental-type] + living [elemental-type] + [dungeon-mimic] [^creature] [humanoid] [creature-epic] @@ -106,193 +135,3 @@ pragma despace-rule [partial-breed] mimic lurker cloaker - -[other-elementalcreatures] archonmental - grue - weird - elementite swarm - genasi - half-elemental - elemental [creature] - [creature] - unraveler - necromental - archon - phantom - facet - wyrm - fiend - spirit - crystalle - spawn - minion - horror - horde - reactionals - elemental dragon - elemental knight - -[elemental] elemental - elemental - elemental - [other-elementalcreatures] - [rs-elementype] - -[great-less] lesser - greater - advanced - -[sgreat-less] , [great-less] - -pragma prefix-with [elemental] [elemental-type] -pragma prefix-with [elemental] [elemental-age] -pragma prefix-with [elemental] [great-less] -pragma suffix-with [elemental] [sgreat-less] - -[rs-elementype] essling - esshound - esswraith - -[elemental-age] small - medium - large - huge - titanic - elder - monolithic - great - primal - -[elemental-type] fire - earth - water - air - [runescape-elemental] - [runescape-elemental] - [paraquasi-elemental] - [paraquasi-elemental] - [other-elemental] - [elemental-type] / [elemental-type] - [elemental-adv] [elemental-type] - -[elemental-adv] shadowy - clockwork - spacious - ethereal - blessed - cursed - ruined - stormy - tainted - chaotic - natural - deathly - astral - cosmic - bloody - soul- - icy - oozing - smoking - ashy - dusty - salty - steaming - forceful - radiant - empty - crystallized - frosted - silty - volcanic - sparking - fuming - blazing - grave - primal - rainy - sunny - angelic - demonic - devilish - sandy - dreaming - demonically-fused - wooden - sonic - decaying - growing - diseased - metallic - null - divine - oily - -[other-elemental] shadow - time - space - ether - light - storm - taint - ruin - darkness - grave - mist - pyre - rain - sun - sand - dream - wood - sonic - titanium - decay - growth - disease - crystal - metal - null - oil - -[runescape-elemental] mind - body - cosmic - chaos - nature - law - death - astral - blood - soul - -[paraquasi-elemental] [para-elemental] - [para-elemental] - [quasi-elemental] - [quasi-elemental] - [quasi-elemental] - [quasi-elemental] - [paraquasi-elemental] - -[para-elemental] ice - magma - ooze - smoke - -[quasi-elemental] ash - dust - salt - vacuum - mineral - radiance - steam - force - -[paraquasi-elemental] crystal - frost - clay - silt - obsidian - pumice - spark - fumes diff --git a/RGens/data/sample-grammars/pokeattacks.gram b/RGens/data/sample-grammars/pokeattacks.gram index 07ad8bc..649f42c 100755 --- a/RGens/data/sample-grammars/pokeattacks.gram +++ b/RGens/data/sample-grammars/pokeattacks.gram @@ -5,6 +5,9 @@ [attack-pp] ( [5..40] pp ) +pragma despace-rule [attack-type] +pragma despace-rule [attack-pp] + pragma suffix-with [pokeattack] [move-kind] pragma suffix-with [pokeattack] [attack-type] pragma suffix-with [pokeattack] [attack-pp] diff --git a/RGens/data/sample-grammars/rtwiki/color.gram b/RGens/data/sample-grammars/rtwiki/color.gram index 636310d..d6c5402 100644 --- a/RGens/data/sample-grammars/rtwiki/color.gram +++ b/RGens/data/sample-grammars/rtwiki/color.gram @@ -23,6 +23,7 @@ pragma export-rule [sw-color-phrase] [complete-color] {wtype=mw} [act-complete-color] +pragma despace-rule [complete-color] pragma export-rule [complete-color] [sw-complete-color] [act-sw-complete-color] @@ -33,6 +34,8 @@ pragma export-rule [sw-complete-color] [act-sw-complete-color] {wtype=sw} [act-complete-color] +pragma despace-rule [act-sw-complete-color] + [act-complete-color] [standard] [red-purple] [yellow-orange] diff --git a/RGens/data/sample-grammars/zadrons-pouch.gram b/RGens/data/sample-grammars/zadrons-pouch.gram index 6a968db..61d928d 100755 --- a/RGens/data/sample-grammars/zadrons-pouch.gram +++ b/RGens/data/sample-grammars/zadrons-pouch.gram @@ -1,11 +1,15 @@ -[zadrons-pouch] → a [zadrons-item] - a [zadrons-item] and a [zadrons-item] - a [zadrons-item] and a [zadrons-item] as well as a [zadrons-item] - a [zadrons-item] or a [zadrons-item] - a [zadrons-item] or a [zadrons-item] or maybe a [zadrons-item] +[zadrons-pouch] → a(n) [zadrons-item] + a(n) [quote-item] and a(n) [quote-item] + a(n) [quote-item] and a(n) [quote-item] as well as a(n) [quote-item] + a(n) [quote-item] or a(n) [quote-item] + a(n) [quote-item] or a(n) [quote-item] or maybe a(n) [quote-item] pragma initial-rule [zadrons-pouch] +[quote-item] ( [zadrons-item] ) + +pragma despace-rule [quote-item] + [zadrons-item] → [egg] [glove] [crys-sphere] @@ -32,6 +36,7 @@ pragma export-rule [zadrons-item] dwarf-kind invisible cloth monster summoning + monster summoning (summons [creature-choice] ) [sack-type] → lunch recursive @@ -73,13 +78,16 @@ pragma export-rule [zadrons-item] [sphere-type] → microphonic seeing-eye + immurement [lens-type] → detection [crystal-type] → prison radar + seeing [crys-suffix] → jumping + scrying [egg] → [egg-type] egg @@ -146,6 +154,7 @@ pragma export-rule [zadrons-item] [pebble-type] → inscribed elemental control + [elemental] control [stone-type] → good-luck weight |
