                      (log/debug (str "it2lex: " (count
                                                  (get it2lex (get-in spec [:italiano :italiano]
                                                                      ::undefined)))))
-                     (log/debug (str "infl2lex: " (count
-                                                   (get infl2lex (get-in spec [:synsem :infl]
-                                                                         ::undefined)))))
                      (log/debug (str "pred2lex: " (count
                                                    (get pred2lex (get-in spec [:synsem :sem :pred]
                                                                          ::undefined)))))

                                                  (sort (map #(fo %)
                                                             (get cat2lex (get-in spec [:synsem :cat]
                                                                                  ::undefined)))))))
                     (log/trace (str "infl2lex: " (clojure.string/join
                                                   ","
                                                   (sort (map #(fo %)
                                                              (get infl2lex (get-in spec [:synsem :infl]
                                                                                    ::undefined)))))))
                     (log/trace (str "pred2lex: " (clojure.string/join
                                                   ","
                                                   (sort (map #(fo %)


        ;; indices from paths to subsets of the lexicon
        aux2lex (map-subset-by-path lexicon-for-generation [:synsem :aux])
        pred2lex (map-subset-by-path lexicon-for-generation [:synsem :sem :pred])
        cat2lex (map-subset-by-path lexicon-for-generation [:synsem :cat])
        it2lex (map-subset-by-path lexicon-for-generation [:italiano :italiano])]
