File tree 1 file changed +3
-3
lines changed
Clojure-Websockets/src/cljs/birdwatch
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 15
15
" until" " while" " of" " at" " by" " for" " with" " about" " against" " between" " into" " through" " during"
16
16
" before" " after" " above" " below" " to" " from" " up" " upon" " down" " in" " out" " on" " off" " over" " under"
17
17
" again" " further" " then" " once" " here" " there" " when" " where" " why" " how" " all" " any" " both" " each"
18
- " few" " more" " most" " other" " some" " such" " no" " nor" " not" " only" " own" " same" " so" " than" " too"
19
- " very" " say" " says" " said" " shall" " via" " htt…" " don" " let" " gonna" " rt" " &" " http" })
18
+ " few" " more" " most" " other" " some" " such" " no" " nor" " not" " only" " own" " same" " so" " than" " too" " come "
19
+ " very" " say" " says" " said" " shall" " via" " htt…" " don" " let" " gonna" " rt" " &" " http" " must " " see " })
20
20
21
21
(defn get-words [app n]
22
22
(vec (map (fn [w] (let [[k v] w] {:key k :value v})) (take n (:words-sorted-by-count @app)))))
33
33
(filter #(> (count %) 3 ) ,)
34
34
(filter #(< (count %) 25 ) ,)
35
35
(map s/lower-case ,)
36
- (map #(s/replace % #"[;:,/‘’…~\- !?# <>()\" @.]+" " " ) ,)
36
+ (map #(s/replace % #"[;:,/‘’…~\- !?\[\]\" <>()\" @.]+" " " ) ,)
37
37
(filter (fn [item] (not (contains? stop-words item))) ,)
38
38
(map #(add-word app %) ,))))
39
39
You can’t perform that action at this time.
0 commit comments