                                  processed-pg
                                  url
                                  blacklist)
+
+           template-removed     (map
+                                 (fn [[xpath infos]]
+                                   (let [template-links (-> xpath
+                                                            template-removed
+                                                            set)]
+                                     [xpath (filter
+                                             (fn [{_ :node href :href _1 :text}]
+                                               (not (some #{href} template-links)))
+                                             infos)]))
+                                 xpaths-hrefs-text)
+           
            xpaths-anchors-chars (map
                                  (fn [[xpath nodes]]
                                    [xpath (map

                                                             :text
                                                             count)})
                                           nodes)])
                                 xpaths-hrefs-text)

           page-wide-nav-chars  (reduce
                                 (fn [acc [xpath nodes]]

                                       0
                                       nodes)))
                                 0
                                 template-removed)

           xpath-nav-info       (filter
                                 #(not
                                   (or
                                    (-> % :score zero?)
                                    (-> % :hrefs count zero?)))
                                 (map
                                  (fn [[xpath info]]
                                    {:xpath xpath
                                     :score (reduce
                                             (fn [acc an-info]
                                               (+ acc (:num-chars an-info)))
                                             0
                                             info)
                                    
                                     :hrefs (reduce
                                             (fn [acc an-info]
                                               (cons (:href an-info) acc))
                                             '()
                                             info)})
                                  xpaths-anchors-chars))]
       
       {:total-nav-info page-wide-nav-chars
        :xpath-nav-info (sort-by :score xpath-nav-info)})))

