Sha256: 34e02ab099e422f034855f97bfc570335b5cd3a4442cc84325658997cefbecd6

Contents?: true

Size: 867 Bytes

Versions: 2

Compression:

Stored size: 867 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'irb'
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'te_reo_maori'

def putanga
  exit
end

extend Tau # Make numbers available

puts 'Nau mai haere mai. Welcome to this application for learning and interacting with Maori.'
puts 'Type "putanga" to exit'
puts 'Try and perform +, -, * (times), / (divide) with Maori'
puts 'The numbers are: '
Tau.rarangi.each do |tau, whakamaoritanga|
  puts "#{tau}: #{whakamaoritanga}"
end
puts 'Example of bigger numbers. 12: "tekau ma rua". Add 23 + 33: "(rua tekau ma toru) + (toru tekau ma toru)"'
puts 'To pronounce numbers one can use. "5.whakahua" or "whakahua((toru tekau ma tahi) + wha))"'
puts 'If you have any ideas on how this can be improved add issue to https://gitlab.com/samuel-garratt/te_reo_maori/-/issues'

IRB.start(__FILE__)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
te_reo_maori-0.1.3 exe/te_reo_maori
te_reo_maori-0.1.2 exe/te_reo_maori