class AnyStyle::Normalizer::Container
Public Instance Methods
normalize(item, **opts)
click to toggle source
# File lib/anystyle/normalizer/container.rb 6 def normalize(item, **opts) 7 map_values(item) do |_, value| 8 value 9 .sub(/^[Ii]n(?::|\s+the)?\s+(\p{^Ll})/, '\1') 10 .sub(/^of\s+/, '') 11 .sub(/^收入/, '') 12 .sub(/^(\w+ )?presented at (the )?/i, '') 13 end 14 end