Merge pull request #101 from ojak/master

Added enclitic for 'd and fixed a tag typo.
This commit is contained in:
Louis Mullie 2015-03-21 16:43:02 -04:00
commit 394edb8fc4
2 changed files with 14 additions and 3 deletions

View File

@ -182,7 +182,7 @@
'Punctuation, semicolon', ['PUN', '.', '.', '', '', 'PN'],
'Puncutation, colon or ellipsis', ['PUN', ':', ':'],
'Punctuationm, comma', ['PUN', ',', ',', '$,'],
'Punctuation, comma', ['PUN', ',', ',', '$,'],
'Punctuation, dash', ['PUN', '-', '-'],
'Punctuation, dollar sign', ['PUN', '', '$'],
'Punctuation, left bracket', ['PUL', '(', '(', '$('],
@ -325,4 +325,4 @@
['SQ', 'Inverted yes/no question']
]
}
}
}

View File

@ -15,7 +15,18 @@ module Treat::Entities::Entity::Buildable
PunctRegexp = /^[[:punct:]\$]+$/
UriRegexp = /^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$/ix
EmailRegexp = /.+\@.+\..+/
Enclitics = %w['ll 'm 're 's 't 've n't]
Enclitics = [
# EXAMPLE:
"'d", # I'd => I would
"'ll", # I'll => I will
"'m", # I'm => I am
"'re", # We're => We are
"'s", # There's => There is
# Let's => Let us
"'t", # 'Twas => Archaic ('Twas the night)
"'ve", # They've => They have
"n't" # Can't => Can not
]
# Accepted formats of serialized files
AcceptedFormats = ['.xml', '.yml', '.yaml', '.mongo']