ArchimedesDigital / open_words

Open source, updated Whitaker's Words Latin Dictionary and Morphology in Python
MIT License
52 stars 13 forks source link

sedet returning subjunctive instead of active #13

Open tjf801 opened 4 years ago

tjf801 commented 4 years ago

When I try to parse the word sedet, I get that it is subjunctive, even though the actual is sedeat.

{
    'word': 'sedet', 
    'defs': [
        {
            'orth': ['sedo', 'sedare', 'sedavi', 'sedatus'], 
            'senses': ['settle, allay', 'restrain', 'calm down'], 
            'infls': [
                {  //this shouldn't be here
                    'ending': 'et', 
                    'pos': 'verb', 
                    'form': {
                        'tense': 'present', 
                        'voice': 'active', 
                        'mood': 'subjunctive', 
                        'person': 3, 
                        'number': 'singular'
                    }
                }, 
                {
                    'ending': 'et', 
                    'pos': 'verb', 
                    'form': {
                        'tense': 'present', 
                        'voice': 'active', 
                        'mood': 'indicative', 
                        'person': 3, 
                        'number': 'singular'
                    }
                }
            ]
        }
    ]
}
tjf801 commented 4 years ago

Also, the expected translations should be "sit, remain; settle; encamp;"

blagae commented 4 years ago

Hi,

The returned value is indeed not 100% correct, because it does not fully separate the two correct results. The form can be analyzed as the indicative present active 3rd person singular of sedere, (sedeo), or as the subjunctive present active 3rd person singular of sedare (sedo).

Since this repo has gone dormant since 2017, I am hijacking this thread to point out my own repo derived from this one which fixes this issue, among others, and has extra work done. It returns the following value for sedet:

{
'word': 'sedet',
'defs': [{
    'orth': ['sed', 'sed', 'sedav', 'sedat'],
    'senses': ['settle, allay', 'restrain', 'calm down'],
    'infls': [{
        'stem': 'sed',
        'ending': 'et',
        'pos': 'verb',
        'form': {
            'tense': 'present',
            'voice': 'active',
            'mood': 'subjunctive',
            'person': 3,
            'number': 'singular'
        }}
    ]},
    {
        'orth': ['sed', 'sed', 'sed', 'sess'],
        'senses': ['sit, remain', 'settle', 'encamp'],
        'infls': [{
        'stem': 'sed',
        'ending': 'et',
        'pos': 'verb',
        'form':
            {'tense': 'present',
            'voice': 'active',
            'mood': 'indicative',
            'person': 3,
            'number': 'singular'
            }
        }]
    }]
}