Sha256: ac6bf556adf3a02f1e3a98d74458e81964fbd129f51d182c22f3e0c7f44155e5

Contents?: true

Size: 790 Bytes

Versions: 2

Compression:

Stored size: 790 Bytes

Contents

require 'tmpdir'
require 'pathname'
require 'delegate'

require 'inflecto'
require 'ice_nine'
require 'rmmseg'
require 'ting'

module Analects
  ROOT = Pathname(__FILE__).dirname.parent

  def self.init_rake_tasks(*args, &blk)
    require 'analects/rake_tasks'
    Analects::RakeTasks.new(*args, &blk)
  end

  def self.cjk?(str)
    str.codepoints.all? do |cp|
      Analects::Models::Zi.codepoint_ranges.any? {|range| range.include?(cp)}
    end
  end
end

require 'cjk_string'

require 'analects/version'
require 'analects/encoding'
require 'analects/cli/progress'
require 'analects/cedict_loader'
require 'analects/chise_ids_loader'
require 'analects/source'
require 'analects/library'
require 'analects/tokenizer'

require 'analects/models/zi'
require 'analects/models/kangxi_radical'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
analects-0.2.1 lib/analects.rb
analects-0.2.0 lib/analects.rb