Created
April 17, 2011 18:39
-
-
Save danieldk/924336 to your computer and use it in GitHub Desktop.
Capitals and numbers
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
nCapitals :: String -> [FeatureValue] | |
nCapitals = | |
return . FeatureValue "capitals" . genericLength . filter isUpper | |
nNumbers :: String -> [FeatureValue] | |
nNumbers = | |
return . FeatureValue "numbers" . genericLength . filter isNumber |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment