From f947c9a9ef0c97bcf2b47af1b113c185eaf92a7f Mon Sep 17 00:00:00 2001
From: Kasia Krasnowska <kasia.krasnowska@gmail.com>
Date: Mon, 18 Oct 2021 12:41:33 +0200
Subject: [PATCH] part -> acc, gen only when negated

---
 entries/phrase_descriptions/utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/entries/phrase_descriptions/utils.py b/entries/phrase_descriptions/utils.py
index e397fb4..8c6bacb 100644
--- a/entries/phrase_descriptions/utils.py
+++ b/entries/phrase_descriptions/utils.py
@@ -106,6 +106,7 @@ STR_CASE = {
     None   : { '_' : 'acc', 'aff' : 'acc', 'neg' : 'gen' },
 }
 AGR_CASE = { 'subj' : 'nom', 'obj' : 'acc', 'head' : 'nom', None : 'nom' }
+PART_CASE = { '_' : 'acc', 'aff' : 'acc', 'neg' : 'gen' },
 PRED_CASE = {
     'subj' : { '_' : 'nom', 'aff' : 'nom', 'neg' : 'nom' },
     'obj'  : { '_' : 'acc', 'aff' : 'acc', 'neg' : 'gen' },
@@ -116,9 +117,8 @@ def correct_case(case, function, negativity='_'):
         return STR_CASE[function][negativity]
     if case == 'agr':
         return AGR_CASE[function]
-    # TODO both gen and acc?
     if case == 'part':
-        return 'gen'
+        return PART_CASE[negativity]
     if case == 'pred':
         return PRED_CASE[function][negativity]
     if case == 'postp':
-- 
GitLab