Sha256: 7e11d41307cbc365df2fc42c2216925b85654377addfd4ad47253b3e232a1980
Contents?: true
Size: 459 Bytes
Versions: 5
Compression:
Stored size: 459 Bytes
Contents
require "active_support" module Amakanize module Filters class NormalizationFilter < BaseFilter # @note Override # @param output [String] e.g. `"ぽんかん(8)"`, `"ぽんかん⑧"` # @return [Hash] e.g. `"ぽんかん(8)"`, `"ぽんかん8"` def call(context:, output:) { context: context, output: ::ActiveSupport::Multibyte::Unicode.normalize(output), } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems