Sha256: 0b7b547984b377e764f13dee0052633484c5812c445a88a10ac7aa236146fb69
Contents?: true
Size: 437 Bytes
Versions: 15
Compression:
Stored size: 437 Bytes
Contents
# frozen_string_literal: true require_relative '../word_preprocessor' module LittleWeasel module Preprocessors module EnUs # This preprocessor capitializes a word. class CapitalizePreprocessor < WordPreprocessor def initialize(order: 0) super end class << self def preprocess(word) [true, word.capitalize] end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems