summaryrefslogtreecommitdiff
path: root/phonology.py
diff options
context:
space:
mode:
Diffstat (limited to 'phonology.py')
-rw-r--r--phonology.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/phonology.py b/phonology.py
index 1853523..55d1cc6 100644
--- a/phonology.py
+++ b/phonology.py
@@ -98,3 +98,27 @@ class Phonology(object):
path['tilt'] = choice(pathRule['tilt'])
return path
+
+
+class Morphology(object):
+
+ def __init__(self):
+ self.anticipationRules = []
+ self.prolongationRules = []
+
+ def addAnticipationRule(self, projectedFeatures):
+ self.anticipationRules.append(projectedFeatures)
+
+ def addProlongationRule(self, projectedFeatures):
+ self.prolongationRules.append(projectedFeatures)
+
+ def print(self):
+ features = {
+ 'anticipations': self.anticipationRules,
+ 'prolongations': self.prolongationRules,
+ }
+ print("\nMorphology")
+ pprint(features)
+ print()
+
+