summaryrefslogtreecommitdiff
path: root/firstisupper
diff options
context:
space:
mode:
Diffstat (limited to 'firstisupper')
-rwxr-xr-xfirstisupper5
1 files changed, 2 insertions, 3 deletions
diff --git a/firstisupper b/firstisupper
index 4278334..516dd8a 100755
--- a/firstisupper
+++ b/firstisupper
@@ -1,8 +1,7 @@
#!/usr/bin/env ruby
-def downcase?(string)
- string[/[[:lower:]]/]
-end
+require 'nlp_ruby'
+
while line = STDIN.gets
puts line.strip if downcase? line[0]