Skip to content

Commit

Permalink
Collapse hyphen after "after"
Browse files Browse the repository at this point in the history
  • Loading branch information
kspurgin committed Aug 13, 2024
1 parent 3440a75 commit 40c7fcf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/emendate/token_collapser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def determine_action

def full_match_collapsers
# case result.types
# when %i[number1or2 slash number4]
# proc { collapse_segments_backward(%i[number1or2 slash]) }
# when %i[after hyphen number4]
# proc { collapse_segments_backward(%i[after hyphen]) }
# end
end

Expand Down Expand Up @@ -92,6 +92,8 @@ def partial_match_collapsers
proc { result.collapse_segments_forward(%i[apostrophe letter_s]) }
when /.*apostrophe number1or2.*/
proc { result.collapse_segments_forward(%i[apostrophe number1or2]) }
when /.*after hyphen.*/
proc { result.collapse_segments_backward(%i[after hyphen]) }
when /.*before hyphen.*/
proc { result.collapse_segments_backward(%i[before hyphen]) }
when /.*partial hyphen.*/
Expand Down

0 comments on commit 40c7fcf

Please sign in to comment.