# File lib/language_detector.rb, line 150
  def initialize(*args)
    args = args.first

    @name = args[:name] || ""
    @ngrams = {}

    init_with_string(args[:text]) if args[:text]
    init_with_file(args[:file]) if args[:file]
  end