From 90fdcd8c9efb6999f26d26fa1b88b7abed6f7560 Mon Sep 17 00:00:00 2001 From: Oliver Jakubiec Date: Fri, 27 Feb 2015 17:08:15 -0800 Subject: [PATCH 1/2] Fixed typo in comma punctuation tag --- lib/treat/config/data/tags.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/treat/config/data/tags.rb b/lib/treat/config/data/tags.rb index 2d3d55c..72bac5e 100644 --- a/lib/treat/config/data/tags.rb +++ b/lib/treat/config/data/tags.rb @@ -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'] ] } -} \ No newline at end of file +} From 721215b64afb6cb4105bc6b19ca6a0e4ab9c4f69 Mon Sep 17 00:00:00 2001 From: Oliver Jakubiec Date: Fri, 20 Mar 2015 13:12:21 -0700 Subject: [PATCH 2/2] Added enclitic for 'd and enclitic examples for clarity --- lib/treat/entities/entity/buildable.rb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/treat/entities/entity/buildable.rb b/lib/treat/entities/entity/buildable.rb index aa44345..5e79ff6 100644 --- a/lib/treat/entities/entity/buildable.rb +++ b/lib/treat/entities/entity/buildable.rb @@ -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']