Sha256: f7ae8425eafec14738dc3466357fcb8d0d0a1e0b7922ec0f866eba1e6c828839
Contents?: true
Size: 402 Bytes
Versions: 5
Compression:
Stored size: 402 Bytes
Contents
module Amakanize module Filters class ContinuousSpacesNormalizationFilter < BaseFilter # @note Override # @param output [String] e.g. `"ウメハラ FIGHTING GAMERS!"` # @return [Hash] e.g. `"ウメハラ FIGHTING GAMERS!"` def call(context:, output:) { context: context, output: output.gsub(/\s+/, " "), } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems