<commit_before>require 'spec_helper'

RSpec.describe Ordspel::Language do

  it 'swedify should return the right string' do
    string = "Hello Olaf!"
    expect(string.swedify).to eq("Hällö Ölåf!")
  end

  it 'danify should return the right string' do
    string = "Hello Olaf!"
    expect(string.danify).to eq("Hællø Ølåf!")
  end

  it 'norwegify should return the right string' do
    string = "Hello Olaf!"
    expect(string.norwegify).to eq("Hællø Ølåf!")
  end

  it 'spanify should return the right string' do
    string = "I eat chicken!!!"
    expect(string.spanify).to eq("I eato chickeno!!!")
  end

  it 'frenchify should return the right string' do
    string = "I eat chicken. Hi hello how is it?"
    expect(string.frenchify).to eq("I euhhh eat euhhh chicken. euhhh i euhhh ello euhhh ow euhhh is euhhh it? euhhh")
  end

  it 'chinify should return the right string' do
    string = "hello, how are you? I love you."
    expect(string.chinify).to eq("herro, how are you? I rove you.")
  end

  it 'japanify should return the right string' do
    string = "I didn't do my homework."
    expect(string.japanify).to eq("You bring dishonor to whole family.")
  end

  it 'germanify should return the right string' do
    string = "The French are the worst!"
    expect(string.germanify).to eq("JA Zo, Ze French Are Ze Worst!")
  end

  it 'russify should return the right string' do
    string = "I want to suck your blood!"
    expect(string.russify).to eq("I vant to suck your blood!")
  end

  it 'dutchify should return the right string' do
    string = "Yes I Saw him yesterday!"
    expect(string.dutchify).to eq("Yesh I Shaw him yeshterday!")
  end

  it 'dutchify should return the right string' do
    string = "Yes I Saw him yesterday!"
    expect(string.dutchify).to eq("Yesh I Shaw him yeshterday!")
  end

  it 'irishify should return the right string' do
    string = "My dog is dead."
    expect(string.irishify).to eq("What's the craic? Me dog is dead.")
  end

  it 'portugify should return the right string' do
    string = "This is a sentence..."
    expect(string.portugify).to eq("This is ã sentenção...")
  end
  
  
end<commit_msg>Added rest of language methods<commit_after>require 'spec_helper'
require 'rspec/mocks'

RSpec.describe Ordspel::Language do

  it 'swedify should return the right string' do
    string = "Hello Olaf!"
    expect(string.swedify).to eq("Hällö Ölåf!")
  end

  it 'danify should return the right string' do
    string = "Hello Olaf!"
    expect(string.danify).to eq("Hællø Ølåf!")
  end

  it 'norwegify should return the right string' do
    string = "Hello Olaf!"
    expect(string.norwegify).to eq("Hællø Ølåf!")
  end

  it 'spanify should return the right string' do
    string = "I eat chicken!!!"
    expect(string.spanify).to eq("I eato chickeno!!!")
  end

  it 'frenchify should return the right string' do
    string = "I eat chicken. Hi hello how is it?"
    expect(string.frenchify).to eq("I euhhh eat euhhh chicken. euhhh i euhhh ello euhhh ow euhhh is euhhh it? euhhh")
  end

  it 'chinify should return the right string' do
    string = "hello, how are you? I love you."
    expect(string.chinify).to eq("herro, how are you? I rove you.")
  end

  it 'japanify should return the right string' do
    string = "I didn't do my homework."
    expect(string.japanify).to eq("You bring dishonor to whole family.")
  end

  it 'germanify should return the right string' do
    string = "The French are the worst!"
    expect(string.germanify).to eq("JA Zo, Ze French Are Ze Worst!")
  end

  it 'russify should return the right string' do
    string = "I want to suck your blood!"
    expect(string.russify).to eq("I vant to suck your blood!")
  end

  it 'dutchify should return the right string' do
    string = "Yes I Saw him yesterday!"
    expect(string.dutchify).to eq("Yesh I Shaw him yeshterday!")
  end

  it 'dutchify should return the right string' do
    string = "Yes I Saw him yesterday!"
    expect(string.dutchify).to eq("Yesh I Shaw him yeshterday!")
  end

  it 'irishify should return the right string' do
    string = "My dog is dead."
    expect(string.irishify).to eq("What's the craic? Me dog is dead.")
  end

  it 'portugify should return the right string' do
    string = "This is a sentence..."
    expect(string.portugify).to eq("This is ã sentenção...")
  end

  it 'swissify should return the right string' do
    string = "I love chocolate."
    expect(string.swissify).to eq("JA Zo, I Eühhh Love Eühhh Chocolate. Eühhh")
  end

  it 'welshify should return the right string' do
    string = "I am Welsh."
    expect(string.welshify).to eq("Y ym Wylsh.")
  end

  it 'belgify should return the right string' do
    string = "Yes I am Belgian. Hospital."
    expect(string.belgify).to eq("Yesh euhhh I euhhh am euhhh Belgian. euhhh oshpital. euhhh")
  end

  it 'americanify should return the right string' do
    string = "I am American."
    expect(string.americanify).to eq("I like am like American.")
  end

  it 'canadify should return the right string' do
    allow_any_instance_of(Array).to receive(:sample).and_return("eh")

    string = "I like maple syrup."
    expect(string.canadify).to eq("I eh like eh maple eh syrup. eh")
  end
  
end
{'fraction_non_alphanumeric': 0.10159817351598173, 'fraction_numerical': 0.0, 'mean_word_length': 3.277461350691619, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7352738', 'n_tokens_mistral': 1797, 'n_tokens_neox': 1731, 'n_words': 672}