peti / titlecase

Capitalize all English words except articles, coordinating conjunctions, and prepositions (unless they begin or end the title).
http://hackage.haskell.org/package/titlecase
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Process text from stdin #3

Closed cust0dian-old closed 7 years ago

cust0dian-old commented 7 years ago

As a potential solution to #2, I was thinking that titlecase could inspect the number of arguments it's being passed, and in case if there are no arguments, would try to read from stdin.

I'm not sure if you agree with this approach or would prefer to use - (echo 'hello world' | titlecase -), similar to other *nix programs, or some command-line flag, but I'd be happy to try my hand at implementing those approaches if you'd like.

Closes #2

peti commented 7 years ago

Looks good to me. Thank you for the submission!