Beispiel #1
0
    def __init__(self, value, irregular_plural='', base='', tags=None):
        self._value = value
        self._irregular = irregular_plural
        if not base:
            base = value
        self._base = base

        if not tags:
            tags = Tags()
        self._tags = tags.copy()
Beispiel #2
0
    def __init__(self, value, irregular_past='', infinitive='', tags=None):
        self._value = value
        self._irregular_past = irregular_past
        if not infinitive:
            infinitive = value
        self._inf = infinitive

        if tags is None:
            tags = Tags()
        self._tags = tags.copy()
 def __init__(self, value, tags=None):
     self._value = value
     if not tags:
         tags = Tags()
     self._tags = tags.copy()
Beispiel #4
0
 def test_copy(self):
     tags = Tags([WordTag.THIRD_PERSON, WordTag.PAST])
     new_tags = tags.copy()
     self.assertIsNot(tags, new_tags)
     self.assertEqual(tags, new_tags)