Created
April 17, 2011 17:46
-
-
Save danieldk/924275 to your computer and use it in GitHub Desktop.
Word capitalization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
capitalization :: String -> [FeatureValue] | |
capitalization (x:_) | |
| isUpper x = [FeatureValue "capitalized" 1] | |
| otherwise = [FeatureValue "capitalized" 0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment