home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / TEXT / UTILITY / ENGLEX10.ZIP / ENGLISH.RUL < prev    next >
Encoding:
Text File  |  1991-12-13  |  8.0 KB  |  231 lines

  1. ;ENGLISH.RUL  2-May-90
  2. ;Rules file for Englex.
  3.  
  4. ;Copyright (C) 1991, Summer Institute of Linguistics, Inc.
  5. ;All rights reserved.
  6. ;See ENGLEX.DOC for fair use policy.
  7.  
  8. ;edit history
  9. ;This description of English is based on the article "A two-level
  10. ;morphological analysis of English," by Lauri Karttunen and
  11. ;K. Wittenburg, Texas Linguistic Forum 22:217-228 (1983).
  12. ;See appendix A of the PC-KIMMO book for an exposition of the rules 
  13. ;in this file.
  14. ;This version of the English rules differs slightly from the version
  15. ;supplied on the original PC-KIMMO release diskette.
  16. ;Note carefully that * is used as the NULL symbol (since 0 is an alphabetic character).
  17. ;Tables generated by KGEN 2-May-91
  18. ; 5-Nov-91    version 0.9
  19. ;25-Nov-91  deleted s:0 and i:y rules (moved after END keyword)
  20. ;26-Nov-91    version 1.0
  21.  
  22. ;CONTENTS
  23. ;Defaults
  24. ;Epenthesis
  25. ;y:i-spelling
  26. ;Elision
  27. ;Gemination
  28. ;END
  29. ;s-deletion
  30. ;i:y-spelling
  31.  
  32. ;' = apostrophe
  33. ;- = hyphen
  34. ;` = stress
  35. ;+ = morpheme break
  36.  
  37. ALPHABET
  38.      b c d f g h j k l m n p q r s t v w x y z a e i o u ' - ` + 
  39.      0 1 2 3 4 5 6 7 8 9
  40. NULL *
  41. ANY @
  42. BOUNDARY #
  43. SUBSET C   b c d f g h j k l m n p q r s t v w x y z 
  44. SUBSET Csib  s x z 
  45. SUBSET Cpal  c g 
  46. SUBSET V     a e i o u 
  47. SUBSET Vbk   a o u 
  48.  
  49. RULE "Defaults" 1 31
  50.     b c d f g h j k l m n p q r s t v w x y z a e i o u ' - + ` @
  51.     b c d f g h j k l m n p q r s t v w x y z a e i o u ' - - * @
  52.  1: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 
  53.  
  54. RULE "Defaults" 1 26
  55.     + y * e * * * * * * * * * * * 0 1 2 3 4 5 6 7 8 9 @
  56.     * i e * b d f g l m n p r s t 0 1 2 3 4 5 6 7 8 9 @
  57.  1: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 
  58.  
  59. ;Epenthesis
  60. RULE " 0:e <= [Csib|ch|sh|y:i] +:0_s [+:0|#]" 6 8
  61.       Csib  +  s  #  c  h  y   @
  62.       Csib  *  s  #  c  h  i   @
  63.  1:      2  1  6  1  5  1  2   1
  64.  2:      2  3  6  1  5  1  2   1
  65.  3:      2  1  4  1  5  1  2   1
  66.  4:      2  0  6  0  5  2  2   1
  67.  5:      2  1  6  1  5  2  2   1
  68.  6:      2  3  6  1  5  2  2   1
  69.  
  70. RULE " 0:e => [Csib|ch|sh|y:i|o] +:0_s [+:0|#]" 7 10
  71.       *  Csib  +  s  #  c  h  y  o   @
  72.       e  Csib  *  s  #  c  h  i  o   @
  73.  1:   0     2  1  7  1  6  1  2  2   1
  74.  2:   0     2  3  7  1  6  1  2  2   1
  75.  3:   4     2  1  7  1  6  1  2  2   1
  76.  4.   0     0  0  5  0  0  0  0  0   0
  77.  5.   0     0  3  0  1  0  0  0  0   0
  78.  6:   0     2  1  7  1  6  2  2  2   1
  79.  7:   0     2  3  7  1  6  2  2  2   1
  80.  
  81. ;y:i-spelling
  82. RULE " y:i => @:C (+:0)_+:0" 4 5
  83.       y  @ e  +  @
  84.       i  C *  *  @
  85.  1:   0  2 1  1  1
  86.  2:   3  2 4  4  1
  87.  3.   0  0 0  1  0
  88.  4:   3  2 1  4  1
  89.  
  90. RULE " y:i /<= @:C (+:0)_+:0 [i|']" 5 7
  91.       @  y  e  +  '  i   @
  92.       C  i  *  *  '  i   @
  93.  1:   2  1  1  1  1  1   1
  94.  2:   2  3  5  5  1  1   1
  95.  3:   2  1  1  4  1  1   1
  96.  4:   2  1  1  1  0  0   1
  97.  5:   2  3  1  1  1  1   1
  98.  
  99. ;Elision
  100. ;three Elision rules
  101. RULE "e:0 => VCC*___+:0 V | C[V|y]___+:0 e | Cu___+:0 V" 11 10
  102.       e  @  C  +  e  y  u i  `  @
  103.       *  V  C  *  e  y  u i  *  @
  104.  1:   0  2  6  1  2  6  2 2  1  1
  105.  2:   0  2  3  1  2  3  2 2  2  1
  106.  3:   4  7  3  1  7  3 11 7  3  1
  107.  4.   0  0  0  5  0  0  0 0  4  0
  108.  5.   0  2  0  0  2  0  2 2  5  0 ;prohibits e:0 before y suffix
  109.  6:   0  7  6  1  7 10 11 7  6  1
  110.  7:   8  2  3  1  2  3  2 2  7  1
  111.  8.   0  0  0  9  0  0  0 0  8  0
  112.  9.   0  0  0  0  2  0  0 0  9  0
  113. 10:   8  7  6  1  7 10 11 7  10 1
  114. 11:   4  2  3  1  2  3  2 2  11 1
  115.  
  116. ;Elision prohibited after Cpal and before back vowel
  117. RULE " e:0 /<= V C* Cpal___+:0 Vbk" 5 7
  118.       V  C  Cpal  e  +  Vbk   @
  119.       V  C  Cpal  *  *  Vbk   @
  120.  1:   2  1     1  1  1    2   1
  121.  2:   2  2     3  1  1    2   1
  122.  3:   2  1     1  4  1    2   1
  123.  4:   2  1     1  1  5    2   1
  124.  5:   2  1     1  1  1    0   1
  125.  
  126. ;Gemination
  127. RULE " 0:{b,d,f,g,l,m,n,p,r,s,t} <= `:0 C* V {b,d,f,g,l,m,n,p,r,s,t}_+:0[V|y:@]" 5 18
  128.       `  C  V  b  +  y  d  f  g  l  m  n  p  r  s  t  y   @
  129.       *  C  V  b  *  @  d  f  g  l  m  n  p  r  s  t  y   @
  130.  1:   2  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1   1
  131.  2:   2  2  3  2  1  1  2  2  2  2  2  2  2  2  2  2  2   1
  132.  3:   2  1  1  4  1  1  4  4  4  4  4  4  4  4  4  4  1   1
  133.  4:   2  1  1  1  5  1  1  1  1  1  1  1  1  1  1  1  1   1
  134.  5:   2  1  0  1  1  0  1  1  1  1  1  1  1  1  1  1  0   1
  135.  
  136. RULE " 0:{b,d,f,g,l,m,n,p,r,s,t} => C* V {b,d,f,g,l,m,n,p,r,s,t}_+:0[V|y:@]" 15 28
  137.       *  *  *  *  *  *  *  *  *  *  *  C  V  b  +  y  d  f  g  l  m  n  p  r  s  t  y   @
  138.       b  d  f  g  l  m  n  p  r  s  t  C  V  b  *  @  d  f  g  l  m  n  p  r  s  t  y   @
  139.  1:   0  0  0  0  0  0  0  0  0  0  0  1  2  1  1  1  1  1  1  1  1  1  1  1  1  1  1   1
  140.  2:   0  0  0  0  0  0  0  0  0  0  0  1  2  3  1  1  6  7  8  9 10 11 12 13 14 15  1   1
  141.  3:   4  0  0  0  0  0  0  0  0  0  0  1  2  1  1  1  1  1  1  1  1  1  1  1  1  1  1   1
  142.  4.   0  0  0  0  0  0  0  0  0  0  0  0  0  0  5  0  0  0  0  0  0  0  0  0  0  0  0   0
  143.  5.   0  0  0  0  0  0  0  0  0  0  0  0  2  0  0  1  0  0  0  0  0  0  0  0  0  0  1   0
  144.  6:   0  4  0  0  0  0  0  0  0  0  0  1  2  1  1  1  1  1  1  1  1  1  1  1  1  1  1   1
  145.  7:   0  0  4  0  0  0  0  0  0  0  0  1  2  1  1  1  1  1  1  1  1  1  1  1  1  1  1   1
  146.  8:   0  0  0  4  0  0  0  0  0  0  0  1  2  1  1  1  1  1  1  1  1  1  1  1  1  1  1   1
  147.  9:   0  0  0  0  4  0  0  0  0  0  0  1  2  1  1  1  1  1  1  1  1  1  1  1  1  1  1   1
  148. 10:   0  0  0  0  0  4  0  0  0  0  0  1  2  1  1  1  1  1  1  1  1  1  1  1  1  1  1   1
  149. 11:   0  0  0  0  0  0  4  0  0  0  0  1  2  1  1  1  1  1  1  1  1  1  1  1  1  1  1   1
  150. 12:   0  0  0  0  0  0  0  4  0  0  0  1  2  1  1  1  1  1  1  1  1  1  1  1  1  1  1   1
  151. 13:   0  0  0  0  0  0  0  0  4  0  0  1  2  1  1  1  1  1  1  1  1  1  1  1  1  1  1   1
  152. 14:   0  0  0  0  0  0  0  0  0  4  0  1  2  1  1  1  1  1  1  1  1  1  1  1  1  1  1   1
  153. 15:   0  0  0  0  0  0  0  0  0  0  4  1  2  1  1  1  1  1  1  1  1  1  1  1  1  1  1   1
  154.  
  155. END
  156.  
  157. ;These s-deletion rules handle lexical:surface pairs such as:
  158.  
  159. ; boy+s+'s  dallas+'s
  160. ; boy0s0'0  dallas0'0
  161.  
  162. ;If you want to use these rules, move them before the END keyword and
  163. ;comment out the +' entry in LEXICON GENITIVE in the file english.lex.
  164.  
  165. ;s-deletion
  166. RULE " s:0 <= +:0 (0:e) s +:0 '_" 6 7
  167.       s  s  +  *  s  '   @
  168.       *  @  *  e  s  '   @
  169.  1:   1  1  2  1  1  1   1
  170.  2:   1  4  2  3  4  1   1
  171.  3:   1  4  2  1  4  1   1
  172.  4:   1  1  5  1  1  1   1
  173.  5:   1  4  2  3  4  6   1
  174.  6:   1  0  2  1  0  1   1
  175.  
  176. RULE " s:0 => s +:0 '_" 4 5
  177.       s  s  +  '   @
  178.       *  s  *  '   @
  179.  1:   0  2  1  1   1
  180.  2:   0  2  3  1   1
  181.  3:   0  2  1  4   1
  182.  4:   1  2  1  1   1
  183.  
  184. ;These i:y rules account for lexical:surface pairs such as:
  185.  
  186. ;die+ing  tie+ing
  187. ;dy00ing  ty00ing
  188.  
  189. ;If you want to use these rules, move the two i:y before the END keyword, 
  190. ;replace the Elision rule with the one below, and in the file verb.lex 
  191. ;comment out entries for `dying, `tying, `lying, be`lying, and `vying.
  192.  
  193. ;i:y-spelling
  194. ;e:@ instead of e:0 to force Elision to apply
  195. RULE " i:y <= ___e:@ +:0 i" 4 6
  196.       i  i  e  +  i   @
  197.       y  @  @  *  i   @
  198.  1:   1  2  1  1  2   1
  199.  2:   1  2  3  1  2   1
  200.  3:   1  2  1  4  2   1
  201.  4:   1  0  1  1  0   1
  202.  
  203. RULE " i:y => ___e:0 +:0 i" 4 5
  204.       i  e  +  i   @
  205.       y  *  *  i   @
  206.  1:   2  1  1  1   1
  207.  2.   0  3  0  0   0
  208.  3.   0  0  4  0   0
  209.  4.   0  0  0  1   0
  210.  
  211. ;Elision
  212. ;three Elision rules plus i:y-spelling
  213. RULE "e:0 => VCC*___+:0 V | C[V|y]___+:0 e | Cu___+:0 V | i:y___+:0 i" 14 11
  214.       e  @  C  +  e  y  u  i  i  `  @
  215.       *  V  C  *  e  y  u  y  i  *  @
  216.  1:   0  2  6  1  2  6  2 12  2  1  1
  217.  2:   0  2  3  1  2  3  2 12  2  2  1
  218.  3:   4  7  3  1  7  3 11 12  7  3  1
  219.  4.   0  0  0  5  0  0  0  0  0  4  0
  220.  5.   0  2  0  0  2  0  2  0  2  5  0 ;prohibits e:0 before y suffix
  221.  6:   0  7  6  1  7 10 11 12  7  6  1
  222.  7:   8  2  3  1  2  3  2 12  2  7  1
  223.  8.   0  0  0  9  0  0  0  0  0  8  0
  224.  9.   0  0  0  0  2  0  0  0  0  9  0
  225. 10:   8  7  6  1  7 10 11 12  7  10 1
  226. 11:   4  2  3  1  2  3  2 12  2  11 1
  227. 12:  13  2  6  1  2  6  2 12  2  12 1
  228. 13.   0  0  0 14  0  0  0  0  0  13 0
  229. 14.   0  0  0  0  0  0  0  0  2  14 0
  230.  
  231.