aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/spell/code.h
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-03-09 12:45:12 +0000
committerrsc <devnull@localhost>2004-03-09 12:45:12 +0000
commitd49a2e4801752c8a1211c7fac8cc08055a6b6fa5 (patch)
tree509d01c729341305f12abc34521276a4ccdb27ce /src/cmd/spell/code.h
parentfb7cc74a929c86ef1c84a971d7a05deaf4d30c85 (diff)
downloadplan9port-d49a2e4801752c8a1211c7fac8cc08055a6b6fa5.tar.gz
plan9port-d49a2e4801752c8a1211c7fac8cc08055a6b6fa5.tar.bz2
plan9port-d49a2e4801752c8a1211c7fac8cc08055a6b6fa5.zip
Various fixes, add spell.
Diffstat (limited to 'src/cmd/spell/code.h')
-rw-r--r--src/cmd/spell/code.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/cmd/spell/code.h b/src/cmd/spell/code.h
new file mode 100644
index 00000000..73fff2e2
--- /dev/null
+++ b/src/cmd/spell/code.h
@@ -0,0 +1,28 @@
+
+/*
+ * affix codes
+ */
+
+#define ED (1<<0) /* +ed, +ing */
+#define ADJ (1<<1) /* (nce)-t_ce, +ize,+al, +ness, -t+cy, +ity, +ly */
+#define NOUN (1<<2) /* +s (+es), +make, +hood, +ship +less */
+#define PROP_COLLECT (1<<3) /* +'s, +an, +ship(for -manship) +less */
+#define ACTOR (1<<4) /* +er */
+#define EST (1<<5)
+#define COMP (EST|ACTOR) /* +er,+est */
+#define DONT_TOUCH (1<<6)
+#define ION (1<<7) /* +ion, +or */
+#define N_AFFIX (1<<8) /* +ic, +ive, +ize, +like, +al, +ful, +ism, +ist, -t+cy, +c (maniac) */
+#define V_AFFIX (1<<9) /* +able, +ive, +ity((bility), +ment */
+#define V_IRREG (1<<10) /* +ing +es +s*/
+#define VERB (V_IRREG|ED)
+#define MAN (1<<11) /* +man, +men, +women, +woman */
+#define ADV (1<<12) /* +hood, +ness */
+#define STOP (1<<14) /* stop list */
+#define NOPREF (1<<13) /* no prefix */
+
+#define MONO (1<<15) /* double final consonant as in fib->fibbing */
+#define IN (1<<16) /* in- im- ir, not un- */
+#define _Y (1<<17) /* +y */
+
+#define ALL (~(NOPREF|STOP|DONT_TOUCH|MONO|IN)) /*anything goes (no stop or nopref)*/