<commit_before># encoding: UTF-8

class Norsk < Language
  def initialize
    @subjects = [ "jeg", "du", "han", "hun", "den", "det", "vi", "dere", "de" ]
    super __FILE__
  end
end

class NorskForm < Tense
  def self.requires_subject?
    false
  end

  def self.takes_subject?
    false
  end

  def self.regular_conjugation(verb, subject=nil)
    raise SubjectException, "No subject allowed." unless subject.nil?
    self.specific_conjugation(verb)
  end

  def self.irregular_conjugation(conjugation, subject=nil)
    raise SubjectException, "No subject allowed." unless subject.nil?
    conjugation
  end
end

class NorskTense < Tense
  def self.requires_subject?
    false
  end

  def self.takes_subject?
    true 
  end

  def self.regular_conjugation(verb, subject=nil)
    subjectify(subject, self.specific_conjugation(verb))
  end

  def self.irregular_conjugation(conjugation, subject=nil)
    subjectify(subject, conjugation)
  end
<commit_msg>Remove checks for requires_subject? and takes_subject?. I'm not using them in Norsk, and have no plans to add additional languages yet, so let's keep things simple for now.<commit_after># encoding: UTF-8

class Norsk < Language
  def initialize
    @subjects = [ "jeg", "du", "han", "hun", "den", "det", "vi", "dere", "de" ]
    super __FILE__
  end
end

class NorskForm < Tense
  def self.regular_conjugation(verb, subject=nil)
    raise SubjectException, "No subject allowed." unless subject.nil?
    self.specific_conjugation(verb)
  end

  def self.irregular_conjugation(conjugation, subject=nil)
    raise SubjectException, "No subject allowed." unless subject.nil?
    conjugation
  end
end

class NorskTense < Tense
  def self.regular_conjugation(verb, subject=nil)
    subjectify(subject, self.specific_conjugation(verb))
  end

  def self.irregular_conjugation(conjugation, subject=nil)
    subjectify(subject, conjugation)
  end

{'fraction_non_alphanumeric': 0.0959409594095941, 'fraction_numerical': 0.0010542962572482868, 'mean_word_length': 4.2, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2207199', 'n_tokens_mistral': 657, 'n_tokens_neox': 601, 'n_words': 173}