This runs in the lfg parser sysout {PHYLUM}<LFG>PARSER>LFG.SYSOUT.  LOAD {ERIS}<SPEECH>LEXICON>ORTHO and {ERIS}<SPEECH>LEXICON>ORTHO-LEX.  Enter a word with space between characters, and start the line with a "/":

/ s t r e s s e d

You'll be prompted for this information:

Language: English; Version: Ortho. Parse from "Word."

The parser rejects hopeless words, and accepts the English words (so far) plus a large set (unknown size) of English-looking words. 

-------------------------------
Rules


: start is word (w/ n feet)

WORD --> Foot*.


: this is the foot rule consisting of an optional unstressed syllable, a stressed one, and optional tails. 14 states.

Foot --> ((ONS) UNSTRV (MEDCDA))
         {(ONS) STRESSV FINALCDA |
             (ONS) FINALV (MEDCDA)
                  (ONS UNSTRV (MEDCDA)) ONS LRIME |
          monofoot|
          DOUBLESYL (FINALCDA)}.


 : the syllable onset consists of 1-3 phonetic consonants. 14 final states, 15 states in all.

ONS --> {  (S) 
            { { P | T | K | C | P H} (R) | 
                ({P | B | F | G |C }) L | 
             {Q U | C H}  }|
          { F |W | B | D | G | T H | C } (R) |
          {(F) |(B) |(G) |(C H)} L  |
          {  S |( G) N | {P | K} N | V | J | X |  M | Z | Y | P T | R | (W) H }.


: unstressed vowels. 6 states, 4 final.

 UNSTRV --> {A  (U) |
             E ({A |
             O (U)}) |
             I ({E |O}) |
             O |
             U (I)}.

: stressed vowel. 13 STATES; 9 FINAL.


STRESSV --> {A ({I L L E | Y | E | I | U}) |
             E ({E | I | U | O I | A | Y | W}) |
             I ({E |  E U}) | 
             O ({O | U | I | E | A | W (E) | Y}) |
             U ({E | I | O | A}) |
             Y }.

: word-internal or non-heavy coda (end of syllable). 8 states, 7 final.


MEDCDA --> {  {M ({P | B}) |
               N ({K | D | G E}) |
               N  G} |
               {R  | L} { ({P | L | F | T | K | C }) | ({S H | C H | X | S}) } |
               { P | T | K | C |  B | D | G | F | T H |V | T H E |S | S H | X | Z | C H | J | G E | H | L | R | M | N | N G | W} }. 


: end of a foot after any vowel  26 STATES;12 FINAL.

FINALCDA --> {M { E | P | B | N | M |  P H})({S |E D}) |
               N {  {E | N | T (H )|  D}) ({S | E D}) |
                     {G E | Q U E} ({S | D}) |
                     {C {H| E} | X | S} ({E  D | S})} |
               N G ({E D | S}) |
               R {   {P | B | T | K | C | Q U E |  D | G |
                     F | T H | V | N | M | L | R | G E}
                      ({S | E D}) |
                   {S H | C H | X | S | G E } ({E S | E D}) } |
               L {{ E | P | T | K | C | Q U E | B |  D | G | F |
                    T H | G E | V E | N | M | L} ({E D | S}) |
                    {S H | C H | X | S}({E S | E D})  } |
               {  {P | C} {T | K } | D (G) E | (F) T |
                  Z  (Z) |
                  S  ({ S | M | H  | T}) |
                  J |
                  G
                  H |
                  G (G) |
                  H |
                  P
                  H |
                  W | V } ({E | E D | E S | S}) }.

: a syllable that completes a foot after a stressed vowel. 8 STATES; 2 FINAL.


LRIME  -->  { A {   H | L | N | R } | 
              E {  L | M | N | T | R } |
              I {  C | N G | L | M | N | P  | V E } |
              O {  C |  M | N | R   } |
              U {  L |  M  }   }.



: iambs, single stressed syllables. 3 states; 1 final. The final vowel rule has 15 states; 7 final.


monofoot --> MONONS {FINALV | STRESSV {MEDCDA | FINALCDA}}.



MONONS  --> {(S) {P (R)| T (R)| K } |

            (S) ({P | B | F | G | C}) L |

             {F | W | B | D | G | T H } (R) | S |
             (K) N | V |C | J | M | Z | Y | R | H }.
FINALV --> {A ({I L L E | Y | I | W | U }) |
            E {E | A (U) | Y (E) | W} |
            I (E (U)) |
            O ({U | I | E | W (E) | Y}) |
            U ({E | O Y}) |
            Y }.


: vowel-vowel transitions like "io."  12 states; 3 final.

 DOUBLESYL --> {A E {A | O |U} |
               I { I | U | O ({U | I}) } | 
               U I A E  | O E I (A) }.


Some categories might seem unusual because they reflect pronunciation, e.g. "FINALCDA" in the following:

((
FIELDS ()
IDS 22 "C-structure 1" (cWORD:157) (cFoot:156) (cONS:26) (cS:2) (cs) (cT:4) (ct) (cR:6) (cr) (
cSTRESSV:101) (cE:8) (ce) (cFINALCDA:155) (cS:10) (cs) (cS:12) (cs) (cE:14) (ce) (cD:16) (cd) 
FONTS 1 (GACHA 10) 
NODES (
  (1  "C-structure 1"
     (73 . 187) 1 NIL NIL NIL NIL)
  (2  "WORD"
     (73 . 163) 1 NIL NIL (3 ) NIL)
  (3  "Foot"
     (73 . 124) 1 NIL NIL (4 11 14 ) (2 ))
  (4  "ONS"
     (23 . 85) 1 NIL NIL (5 7 9 ) (3 ))
  (5  "S"
     (5 . 46) 1 NIL NIL (6 ) (4 ))
  (6 s
     (5 . 7) 1 NIL NIL NIL (5 ))
  (7  "T"
     (23 . 46) 1 NIL NIL (8 ) (4 ))
  (8 t
     (23 . 7) 1 NIL NIL NIL (7 ))
  (9  "R"
     (41 . 46) 1 NIL NIL (10 ) (4 ))
  (10 r
      (41 . 7) 1 NIL NIL NIL (9 ))
  (11  "STRESSV"
      (65 . 85) 1 NIL NIL (12 ) (3 ))
  (12  "E"
      (65 . 46) 1 NIL NIL (13 ) (11 ))
  (13 e
      (65 . 7) 1 NIL NIL NIL (12 ))
  (14  "FINALCDA"
      (124 . 85) 1 NIL NIL (15 17 19 21 ) (3 ))
  (15  "S"
      (97 . 46) 1 NIL NIL (16 ) (14 ))
  (16 s
      (97 . 7) 1 NIL NIL NIL (15 ))
  (17  "S"
      (115 . 46) 1 NIL NIL (18 ) (14 ))
  (18 s
      (115 . 7) 1 NIL NIL NIL (17 ))
  (19  "E"
      (133 . 46) 1 NIL NIL (20 ) (14 ))
  (20 e
      (133 . 7) 1 NIL NIL NIL (19 ))
  (21  "D"
      (151 . 46) 1 NIL NIL (22 ) (14 ))
  (22 d
      (151 . 7) 1 NIL NIL NIL (21 ))
))
0 (*TOP BASELINE))
��
���GACHA�
��������������GACHA�
���������Ž���GACHA�
����������.��GRAPHOBJ.GETFN���Ê�z¸