     :g [#"^(\S+)$"          "$1ais"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :1st}}}}}}
+                 :agr {:number :sing
+                       :person :1st}}}}
    {:p [#"^(\S+)ais$"       "s'$1"]
     :g [#"^s'(\S+)$"        "$1ais"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :1st}}}}}}
+                 :agr {:number :sing
+                       :person :1st}}}}
    {:p [#"^(\S+)ais$"       "se $1"]
     :g [#"^se (\S+)$"       "$1ais"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :1st}}}}}}
+                 :agr {:number :sing
+                       :person :1st}}}}
    {:p [#"^(\S+)ais$"       "$1"]
     :g [#"^(\S+)$"          "$1ais"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :2nd}}}}}}
+                 :agr {:number :sing
+                       :person :2nd}}}}
    {:p [#"^(\S+)ais$"       "s'$1"]
     :g [#"^s'(\S+)$"        "$1ais"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :2nd}}}}}}
+                 :agr {:number :sing
+                       :person :2nd}}}}
    {:p [#"^(\S+)ais$"       "se $1"]
     :g [#"^se (\S+)$"       "$1ais"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :2nd}}}}}}
+                 :agr {:number :sing
+                       :person :2nd}}}}
    {:p [#"^(\S+)rais$"      "$1re"]
     :g [#"^(\S+)$"          "$1ais"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :1st}}}}}}
+                 :agr {:number :sing
+                       :person :1st}}}}
    {:p [#"^(\S+)rais$"      "s'$1re"]
     :g [#"^s'(\S+)$"        "$1ais"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :1st}}}}}}
+                 :agr {:number :sing
+                       :person :1st}}}}
    {:p [#"^(\S+)rais$"      "se $1re"]
     :g [#"^se (\S+)re$"     "$1rais"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :1st}}}}}}
+                 :agr {:number :sing
+                       :person :1st}}}}
    {:p [#"^(\S+)rais$"      "$1"]
     :g [#"^(\S+)re$"        "$1ais"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :2nd}}}}}}
+                 :agr {:number :sing
+                       :person :2nd}}}}
    {:p [#"^(\S+)rais$"      "s'$1"]
     :g [#"^s'(\S+)re$"      "$1ais"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :2nd}}}}}}
+                 :agr {:number :sing
+                       :person :2nd}}}}
    {:p [#"^(\S+)rais$"      "se $1"]
     :g [#"^se (\S+)$"       "$1ais"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :2nd}}}}}}
+                 :agr {:number :sing
+                       :person :2nd}}}}
    {:p [#"^(\S+)ait$"       "$1"]
     :g [#"^(\S+)$"          "$1ait"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :3rd}}}}}}
+                 :agr {:number :sing
+                       :person :3rd}}}}
    {:p [#"^(\S+)ait$"       "s'$1"]
     :g [#"^s'(\S+)$"        "$1ait"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :3rd}}}}}}
+                 :agr {:number :sing
+                       :person :3rd}}}}
    {:p [#"^(\S+)ait$"       "se $1"]
     :g [#"^se (\S+)$"       "$1ait"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :3rd}}}}}}
+                 :agr {:number :sing
+                       :person :3rd}}}}
    {:p [#"^(\S+)rait$"      "$1re"]
     :g [#"^(\S+)re$"        "$1rait"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :3rd}}}}}}
+                 :agr {:number :sing
+                       :person :3rd}}}}
    {:p [#"^(\S+)rait$"      "s'$1re"]
     :g [#"^s'(\S+)$"        "$1rait"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :3rd}}}}}}
+                 :agr {:number :sing
+                       :person :3rd}}}}
    {:p [#"^(\S+)rait$"      "se $1re"]
     :g [#"^se (\S+)$"       "$1ait"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :sing
-                                    :person :3rd}}}}}}
+                 :agr {:number :sing
+                       :person :3rd}}}}
    {:p [#"^(\S+)ions$"      "$1"]
     :g [#"^(\S+)$"          "$1ions"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :1st}}}}}}
+                 :agr {:number :plur
+                       :person :1st}}}}
    {:p [#"^(\S+)ions$"      "s'$1"]
     :g [#"^s' (\S+)$"       "$1ions"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :1st}}}}}}
+                 :agr {:number :plur
+                       :person :1st}}}}
    {:p [#"^(\S+)ions$"      "se $1"]
     :g [#"^se (\S+)$"       "$1ions"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :1st}}}}}}
+                 :agr {:number :plur
+                       :person :1st}}}}
    {:p [#"^(\S+)rions$"     "$1re"]
     :g [#"^(\S+)re$"        "$1rions"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :1st}}}}}}
+                 :agr {:number :plur
+                       :person :1st}}}}
    {:p [#"^(\S+)rions$"     "s'$1re"]
     :g [#"^s'(\S+)$"        "$1ions"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :1st}}}}}}
+                 :agr {:number :plur
+                       :person :1st}}}}
    {:p [#"^(\S+)rions$"     "se $1re"]
     :g [#"^se (\S+)$"       "$1rions"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :1st}}}}}}
+                 :agr {:number :plur
+                       :person :1st}}}}
    {:p [#"^(\S+)iez$"       "$1"]
     :g [#"^(\S+)$"          "$1iez"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :2nd}}}}}}
+                 :agr {:number :plur
+                       :person :2nd}}}}
    {:p [#"^(\S+)iez$"       "s'$1"]
     :g [#"^s'(\S+)$"        "$1iez"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :2nd}}}}}}
+                 :agr {:number :plur
+                       :person :2nd}}}}
    {:p [#"^(\S+)iez$"       "se $1"]
     :g [#"^se (\S+)$"       "$1iez"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :2nd}}}}}}
+                 :agr {:number :plur
+                       :person :2nd}}}}
    {:p [#"^(\S+)riez$"      "$1re"]
     :g [#"^(\S+)re$"        "$1riez"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :2nd}}}}}}
+                 :agr {:number :plur
+                       :person :2nd}}}}
    {:p [#"^(\S+)riez$"      "s'$1re"]
     :g [#"^s'(\S+)re$"      "$1riez"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :2nd}}}}}}
+                 :agr {:number :plur
+                       :person :2nd}}}}
    {:p [#"^(\S+)riez$"      "se $1re"]
     :g [#"^se (\S+)re$"     "$1riez"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :2nd}}}}}}
+                 :agr {:number :plur
+                       :person :2nd}}}}
    {:p [#"^(\S+)aient$"     "$1"]
     :g [#"^(\S+)$"          "$1aient"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :3rd}}}}}}
+                 :agr {:number :plur
+                       :person :3rd}}}}
    {:p [#"^(\S+)aient$"     "s'$1"]
     :g [#"^s'(\S+)$"        "$1aient"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :3rd}}}}}}
+                 :agr {:number :plur
+                       :person :3rd}}}}
    {:p [#"^(\S+)aient$"     "se $1"]
     :g [#"^se (\S+)$"       "$1aient"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :3rd}}}}}}
+                 :agr {:number :plur
+                       :person :3rd}}}}
    {:p [#"^(\S+)raient$"    "$1re"]
     :g [#"^(\S+)$"          "$1aient"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :3rd}}}}}}
+                 :agr {:number :plur
+                       :person :3rd}}}}
    {:p [#"^(\S+)raient$"    "s'$1re"]
     :g [#"^s'(\S+)$"        "$1aient"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :3rd}}}}}}
+                 :agr {:number :plur
+                       :person :3rd}}}}
    {:p [#"^(\S+)raient$"    "se $1re"]
     :g [#"^se (\S+)re$"     "$1raient"]
     :u {:synsem {:infl :conditional
                  :cat :verb
-                 :subcat {:1 {:agr {:number :plur
-                                    :person :3rd}}}}}}
+                 :agr {:number :plur
+                       :person :3rd}}}}
    ]
   ))
 

    :p [#"^([aeéiou]\S+)é$"    "s'$1er"]
    :g [#"^s'([aeéiou]\S+)er$" "$1é"]
    :u {:synsem {:infl :past-p
                 :subcat {:1 {:agr {:number :sing
                                    :gender :masc}}}}}}

   {:comment "past participle reflexive plural masculine -er where stem begins with a vowel"
    :p [#"^([aeéiou]\S+)és$"   "s'$1er"]
    :g [#"^s'([aeéiou]\S+)er$" "$1és"]
    :u {:synsem {:infl :past-p
                 :subcat {:1 {:agr {:number :plur
                                    :gender :masc}}}}}}

   {:comment "past participle reflexive singular feminine -er where stem begins with a vowel"
    :p [#"^([aeéiou]\S+)ée$"   "s'$1er"]
    :g [#"^s'([aeéiou]\S+)er$" "$1ée"]
    :u {:synsem {:infl :past-p
                 :subcat {:1 {:agr {:number :sing
                                    :gender :fem}}}}}}

   {:comment "past participle reflexive plural feminine -er where stem begins with a vowel"
    :p [#"^([aeéiou]\S+)ées$"  "s'$1er"]
    :g [#"^s'([aeéiou]\S+)er$" "$1ées"]
    :u {:synsem {:infl :past-p
                 :subcat {:1 {:agr {:number :plur
                                    :gender :fem}}}}}}

   {:comment "past participle reflexive singular masculine -er where stem does not begin with a vowel"
    :p [#"^([^aeéiou]\S+)é$"   "se $1er"]
    :g [#"^se (\S+)er$"        "$1é"]
    :u {:synsem {:infl :past-p
                 :subcat {:1 {:agr {:number :sing
                                    :gender :masc}}}}}}

   {:comment "past participle reflexive plural masculine -er where stem does not begin with a vowel"
    :p [#"^([^aeéiou]\S+)és$"  "se $1er"]
    :g [#"^se (\S+)er$"        "$1és"]
    :u {:synsem {:infl :past-p
                 :subcat {:1 {:agr {:number :plur
                                    :gender :masc}}}}}}

   {:comment "past participle reflexive singular feminine -er where stem does not begin with a vowel"
    :p [#"^([^aeéiou]\S+)ée$"    "se $1er"]
    :g [#"^se ([^aeéiou]\S+)er$" "$1é"]
    :u {:synsem {:infl :past-p
                 :subcat {:1 {:agr {:number :sing
                                    :gender :fem}}}}}}

   {:comment "past participle reflexive plural feminine -er where stem does not begin with a vowel"
    :p [#"^([^aeéiou]\S+)ées$"   "se $1er"]
    :g [#"^se ([^aeéiou]\S+)er$" "$1ées"]
    :u {:synsem {:infl :past-p
                 :subcat {:1 {:agr {:number :plur
                                    :gender :fem}}}}}}
   ]))

(def past-reflexive-re-verb
  (map

     :u {:synsem {:infl :past-p
                  :essere true
                  :agr {:gender :masc
                        :number :plur}}}}
    ;; singular feminine
    {:comment "past participle non-reflexive singular feminine; essere=true"
     :p [#"^(\S+)ée$"           "$1er"]
