about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMorgan <m@morganastra.me>2015-03-09 05:14:47 +0000
committerMorgan <m@morganastra.me>2015-03-09 05:14:47 +0000
commit0150d805f3ebc3a2a9d003d502444ba1b18e70a3 (patch)
treecf900e75a0e8e5f2f9ed60afab06a0c47615ed14
parente3efc283bed46b3b977efb6d20f7f98c400a8a55 (diff)
add some more pronouns, fix a typo
-rw-r--r--resources/pronouns.tab5
-rw-r--r--src/pronouns/web.clj6
2 files changed, 7 insertions, 4 deletions
diff --git a/resources/pronouns.tab b/resources/pronouns.tab
index 890535b..01c1240 100644
--- a/resources/pronouns.tab
+++ b/resources/pronouns.tab
@@ -1,2 +1,5 @@
-ze	hir	hirs	hirs	hirself
+ze	hir	hir	hirs	hirself
 ze	zir	zir	zirs	zirself
+she	her	her	hers	herself
+he	him	his	his	himself
+they	them	their	theirs	themself
diff --git a/src/pronouns/web.clj b/src/pronouns/web.clj
index 971c69b..665618d 100644
--- a/src/pronouns/web.clj
+++ b/src/pronouns/web.clj
@@ -39,8 +39,8 @@
               (str subject " brought " possessive-determiner " frisbee")
               (str "at least I think it was " possessive-pronoun)
               (str subject " threw it to " reflexive)]))
-  ([error-message]
-     error-message))
+  ([nothing]
+     "We couldn't find those pronouns in our database, please let us know to add them!"))
 
 (defroutes app-routes
   (GET "/" []
@@ -50,7 +50,7 @@
   (GET "/*" {params :params}
        {:status 200
         :headers {"Content-Type" "text/plain"}
-        :body (let [pronouns (parse-pronouns-with-lookup {:* params})]
+        :body (let [pronouns (parse-pronouns-with-lookup (:* params))]
                 (apply render-examples-page pronouns))})
 
   (ANY "*" []