# -*- coding: utf-8 -*-
import spellnum

# The language is passed to the Speller class constructor.
gentleman = spellnum.Speller('en')

# Pass an integer to the 'spell' method
# and it will return a string with the spelling.
assert(gentleman.spell(1300) == 'one thousand three hundred')
assert(gentleman.spell(10700010) == 'ten million seven hundred thousand ten')

# Here we use the 'es' language code to spell some numbers in Spanish
torero = spellnum.Speller('es')
assert(torero.spell(1989) == 'mil novecientos ochenta y nueve')

# spellnum can also check and correct your spelling.
#
# The 'check' method returns a string with correct spelling if the spelling
# provided by the user is wrong.
#
# It returns None otherwise.
assert(torero.check(10007, 'diez mil siete') is None)
assert(torero.check(1, 'dos') == 'uno')

@@ -38,191 +38,42 @@
 um%0A%0A
-# The language is passed to the Speller class constructor.%0Agentleman = spellnum.Speller('en')%0A%0A# Pass an integer to the 'spell' method%0A# and it will return a string with the spelling.
+gentleman = spellnum.Speller('en')
 %0Aass
@@ -214,78 +214,8 @@
 ')%0A%0A
-# Here we use the 'es' language code to spell some numbers in Spanish%0A
 tore
@@ -309,204 +309,8 @@
 ve')
-%0A%0A# spellnum can also check and correct your spelling.%0A#%0A# The 'check' method returns a string with correct spelling if the spelling%0A# provided by the user is wrong.%0A#%0A# It returns None otherwise.
 %0Aass

Remove comments from example.py