예제 #1
0
 def __init__(self):
     _Verbs.__init__(
         self,
         os.path.join(MODULE, "es-verbs.txt"),
         language="es",
         default={},
         format=[
             0,
             1,
             2,
             3,
             4,
             5,
             6,
             8,  # indicativo presente
             34,
             35,
             36,
             37,
             38,
             39,
             24,  # indicativo pretérito
             17,
             18,
             19,
             20,
             21,
             22,  # indicativo imperfecto
             40,
             41,
             42,
             43,
             44,
             45,  # indicativo futuro
             46,
             47,
             48,
             49,
             50,
             51,  # indicativo condicional
             52,
             54,  # imperativo afirmativo
             55,
             56,
             57,
             58,
             59,
             60,  # subjuntivo presente
             67,
             68,
             69,
             70,
             71,
             72  # subjuntivo imperfecto
         ])
예제 #2
0
파일: inflect.py 프로젝트: jhpyle/pattern
 def __init__(self):
     _Verbs.__init__(
         self,
         os.path.join(MODULE, "xx-verbs.txt"),
         language="xx",
         # The order of tenses in the given file; see pattern.text.__init__.py => Verbs.
         format=[
             0, 1, 2, 3, 7, 8, 17, 18, 19, 23, 25, 24, 16, 9, 10, 11, 15,
             33, 26, 27, 28, 32
         ],
         default={})
예제 #3
0
파일: inflect.py 프로젝트: jhpyle/pattern
 def __init__(self):
     _Verbs.__init__(self, os.path.join(MODULE, "en-verbs.txt"),
         language = "en",
           format = [0, 1, 2, 3, 7, 8, 17, 18, 19, 23, 25, 24, 16, 9, 10, 11, 15, 33, 26, 27, 28, 32],
          default = {
              1: 0, 2: 0, 3: 0, 7: 0,  # present singular => infinitive ("I walk")
              4: 7, 5: 7, 6: 7,          # present plural
             17: 25, 18: 25, 19: 25, 23: 25, # past singular
             20: 23, 21: 23, 22: 23,         # past plural
              9: 16, 10: 16, 11: 16, 15: 16, # present singular negated
             12: 15, 13: 15, 14: 15,         # present plural negated
             26: 33, 27: 33, 28: 33,         # past singular negated
             29: 32, 30: 32, 31: 32, 32: 33  # past plural negated
         })
예제 #4
0
 def __init__(self):
     _Verbs.__init__(self, os.path.join(MODULE, "fr-verbs.txt"),
         language = "fr",
          default = {},
           format = [
             0, 1, 2, 3, 4, 5, 6, 8, 24, # indicatif présent
             34, 35, 36, 37, 38, 39,     # indicatif passé simple
             17, 18, 19, 20, 21, 22,     # indicatif imparfait
             40, 41, 42, 43, 44, 45,     # indicatif futur simple
             46, 47, 48, 49, 50, 51,     # conditionnel présent
             52, 53, 54,                 # impératif présent
             55, 56, 57, 58, 59, 60,     # subjonctif présent
             67, 68, 69, 70, 71, 72      # subjonctif imparfait
         ])
예제 #5
0
파일: inflect.py 프로젝트: jhpyle/pattern
 def __init__(self):
     _Verbs.__init__(self, os.path.join(MODULE, "it-verbs.txt"),
         language = "it",
          default = {},
           format = [
             0, 1, 2, 3, 4, 5, 6, 8,     # indicativo presente
             34, 35, 36, 37, 38, 39, 24, # indicativo passato remoto
             17, 18, 19, 20, 21, 22,     # indicativo imperfetto
             40, 41, 42, 43, 44, 45,     # indicativo futuro semplice
             46, 47, 48, 49, 50, 51,     # condizionale presente
                 52, 521, 53, 54, 541,    # imperativo
             55, 56, 57, 58, 59, 60,     # congiuntivo presente
             67, 68, 69, 70, 71, 72      # congiontive imperfetto
         ])
예제 #6
0
 def __init__(self):
     _Verbs.__init__(self,
                     os.path.join(MODULE, "de-verbs.txt"),
                     language="de",
                     format=[
                         0, 1, 2, 3, 4, 5, 8, 17, 18, 19, 20, 21, 24, 52,
                         54, 53, 55, 56, 58, 59, 67, 68, 70, 71
                     ],
                     default={
                         6: 4,
                         22: 20,
                         57: 55,
                         60: 58,
                         69: 67,
                         72: 70
                     })