Commit 6e552f4d51b3b99d9b9e95497ad4fd2cb2f3bc35

Authored by Tomasz Bartosiak
1 parent dff90de1

QuickFix -- ratry nieleksykalne

semantics/phraseology_generator.py
... ... @@ -210,10 +210,12 @@ def phrase(head, dependents):
210 210 post = list(set(post))
211 211 orth, _ = head
212 212 result = []
  213 + if len(pre) == 0 and len(post) == 0:
  214 + result.append(orth)
213 215 for prefix in pre:
214 216 for suffix in post:
215 217 if prefix == '' and suffix == '':
216   - if len(pre) == 0 and len(post) == 0:
  218 + if len(pre) == 1 and len(post) == 1:
217 219 result.append(orth)
218 220 elif prefix == '':
219 221 result.append(orth + ' ' + suffix)
... ...