module Pingilish

Constants

VERSION

Public Class Methods

to_default(text) click to toggle source
# File lib/pingilish.rb, line 12
def self.to_default(text)
  db_filter = DbFilter.new(text)
  text = db_filter.process

  # stem_filter = StemFilter.new(text)
  # text = stem_filter.process

  mapping_filter = MappingFilter.new(text)
  text = mapping_filter.process
end
to_farsi(str) click to toggle source
# File lib/pingilish.rb, line 7
def self.to_farsi(str)
  pin = Farsi.new(str)
  pin.to_farsi.force_encoding('UTF-8')
end