(ns tesq.utils
  (:require	[clojure.string :refer [replace capitalize]]))


(defn prettify
  "Turn table name into something more human friendly."
  [s]
  (-> s capitalize (replace #"_" " ")))


(defn singularise
  "Turn plural string into singular."
  [s]
  (replace s #"s$" ""))

(ns tesq.utils
  (:require	[clojure.string :refer [replace capitalize]]))


(defn prettify
  "Turn table name into something more human friendly."
  [s]
  (-> s capitalize (replace #"_" " ")))


(defn singularise
  "Turn plural string into singular."
  [s]
  (cond

   (re-find #"ies$" s)
   (replace s #"ies$" "y")

   :else
   (replace s #"s$" "")

   ))


Handle 'ies' words in singularise fn
Handle 'ies' words in singularise fn

jules75/tesq