from Utils.filtered_wordifications import *
from Utils.create_dictionary import *
from Utils.utils import *

from all_wordifications import *
from number_to_words import *
from words_to_number import *

import argparse

parser = argparse.ArgumentParser()

parser.add_argument("-n", "--wordify", action = "store",
    dest = "number", help = "Suggest a Wordification for the US Phone Number")

parser.add_argument("-w", "--numerize", action = "store",
    dest = "word", help = "Convert the Wordified Number to a Phone Number")

parser.add_argument("-f", "--format", action = "store",
    dest = "format", default="1-xxx-xxx-xxxx",
    help = "Specify a Format for Conversion to a Phone Number")

parser.add_argument("-a", "--all", action = "store",
    dest = "all", help = "Find all Wordifications of a US Phone Number")

parser.add_argument("-filter", "--filtered", action = "store",
    dest = "filtered", help = "Find the Filtered Wordifications of a US Phone Number")

parser.add_argument("-d", "--dict", action = "store",
    dest = "dict", default = "Utils/words_alpha_mod.txt",
    help = "Specify Dictionary")

parser.add_argument("-i", "--input", action = "store",
    dest = "input", default = "Dictionaries/",
    help = "Provide the directory path which contains the smaller dictionaries")

parser.add_argument("-o", "--output", action = "store",
    dest = "output", default = "Utils/custom_final_dictionary.txt",
    help = "Provide the filepath (including a filename of your choice) to output the final dictionary")

parser.add_argument("-c", "--create", action = "store",
	dest = "create", help = "To Create a Dictionary")

def main(args):
    
    # wordify a given phone number and print out one wordification
    if args.number != None:
        
        wordified = number_to_words(args.number, args.dict)
        
        print("Number:", args.number)
        print("Wordified Number:", wordified)
        
        return wordified

    # numerize a string into the format of your choice
    if args.word != None:
        
        numerized = words_to_number(args.word, args.format)
        
        print("Wordified Number:", args.word)
        print("Number", numerized)
        
        return numerized

    # wordify a phone number of your choice and print out all possible wordifications
    if args.all != None:
        
        all_words = all_wordifications(args.all) 
        
        for ind, wordified in enumerate(all_words):
            print("{}: ".format(ind+1), wordified, end='\n')
        
        print("Found {} Wordifications".format(len(all_words)))
        
        return all_words

    # wordify a phone number of your choice and print out the filtered wordifications
    if args.filtered != None:
        
        filtered_words = filtered_wordifications(args.filtered, args.dict) 
        
        for ind, wordified in enumerate(filtered_words):
            print("{}: ".format(ind+1), wordified, end='\n')
        
        print("Found {} Wordifications".format(len(filtered_words)))
        
        return filtered_words

    # create a Dictionary of your choice
    if args.create != None:
    	create_dictionary(args.input, args.output)
    	print("Your new dictionary can be found at: {}".format(args.output))


if __name__ == "__main__":
    args = parser.parse_args()
    main(args)

d89c6c16576df7cd823e9f0b71a0e7a0192c20c3
<mask token>

<mask token>


def main(args):
    if args.number != None:
        wordified = number_to_words(args.number, args.dict)
        print('Number:', args.number)
        print('Wordified Number:', wordified)
        return wordified
    if args.word != None:
        numerized = words_to_number(args.word, args.format)
        print('Wordified Number:', args.word)
        print('Number', numerized)
        return numerized
    if args.all != None:
        all_words = all_wordifications(args.all)
        for ind, wordified in enumerate(all_words):
            print('{}: '.format(ind + 1), wordified, end='\n')
        print('Found {} Wordifications'.format(len(all_words)))
        return all_words
    if args.filtered != None:
        filtered_words = filtered_wordifications(args.filtered, args.dict)
        for ind, wordified in enumerate(filtered_words):
            print('{}: '.format(ind + 1), wordified, end='\n')
        print('Found {} Wordifications'.format(len(filtered_words)))
        return filtered_words
    if args.create != None:
        create_dictionary(args.input, args.output)
        print('Your new dictionary can be found at: {}'.format(args.output))


<mask token>

<mask token>
parser.add_argument('-n', '--wordify', action='store', dest='number', help=
    'Suggest a Wordification for the US Phone Number')
parser.add_argument('-w', '--numerize', action='store', dest='word', help=
    'Convert the Wordified Number to a Phone Number')
parser.add_argument('-f', '--format', action='store', dest='format',
    default='1-xxx-xxx-xxxx', help=
    'Specify a Format for Conversion to a Phone Number')
parser.add_argument('-a', '--all', action='store', dest='all', help=
    'Find all Wordifications of a US Phone Number')
parser.add_argument('-filter', '--filtered', action='store', dest=
    'filtered', help='Find the Filtered Wordifications of a US Phone Number')
parser.add_argument('-d', '--dict', action='store', dest='dict', default=
    'Utils/words_alpha_mod.txt', help='Specify Dictionary')
parser.add_argument('-i', '--input', action='store', dest='input', default=
    'Dictionaries/', help=
    'Provide the directory path which contains the smaller dictionaries')
parser.add_argument('-o', '--output', action='store', dest='output',
    default='Utils/custom_final_dictionary.txt', help=
    'Provide the filepath (including a filename of your choice) to output the final dictionary'
    )
parser.add_argument('-c', '--create', action='store', dest='create', help=
    'To Create a Dictionary')


def main(args):
    if args.number != None:
        wordified = number_to_words(args.number, args.dict)
        print('Number:', args.number)
        print('Wordified Number:', wordified)
        return wordified
    if args.word != None:
        numerized = words_to_number(args.word, args.format)
        print('Wordified Number:', args.word)
        print('Number', numerized)
        return numerized
    if args.all != None:
        all_words = all_wordifications(args.all)
        for ind, wordified in enumerate(all_words):
            print('{}: '.format(ind + 1), wordified, end='\n')
        print('Found {} Wordifications'.format(len(all_words)))
        return all_words
    if args.filtered != None:
        filtered_words = filtered_wordifications(args.filtered, args.dict)
        for ind, wordified in enumerate(filtered_words):
            print('{}: '.format(ind + 1), wordified, end='\n')
        print('Found {} Wordifications'.format(len(filtered_words)))
        return filtered_words
    if args.create != None:
        create_dictionary(args.input, args.output)
        print('Your new dictionary can be found at: {}'.format(args.output))


if __name__ == '__main__':
    args = parser.parse_args()
    main(args)

from Utils.filtered_wordifications import *
from Utils.create_dictionary import *
from Utils.utils import *
from all_wordifications import *
from number_to_words import *
from words_to_number import *
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-n', '--wordify', action='store', dest='number', help=
    'Suggest a Wordification for the US Phone Number')
parser.add_argument('-w', '--numerize', action='store', dest='word', help=
    'Convert the Wordified Number to a Phone Number')
parser.add_argument('-f', '--format', action='store', dest='format',
    default='1-xxx-xxx-xxxx', help=
    'Specify a Format for Conversion to a Phone Number')
parser.add_argument('-a', '--all', action='store', dest='all', help=
    'Find all Wordifications of a US Phone Number')
parser.add_argument('-filter', '--filtered', action='store', dest=
    'filtered', help='Find the Filtered Wordifications of a US Phone Number')
parser.add_argument('-d', '--dict', action='store', dest='dict', default=
    'Utils/words_alpha_mod.txt', help='Specify Dictionary')
parser.add_argument('-i', '--input', action='store', dest='input', default=
    'Dictionaries/', help=
    'Provide the directory path which contains the smaller dictionaries')
parser.add_argument('-o', '--output', action='store', dest='output',
    default='Utils/custom_final_dictionary.txt', help=
    'Provide the filepath (including a filename of your choice) to output the final dictionary'
    )
parser.add_argument('-c', '--create', action='store', dest='create', help=
    'To Create a Dictionary')


def main(args):
    if args.number != None:
        wordified = number_to_words(args.number, args.dict)
        print('Number:', args.number)
        print('Wordified Number:', wordified)
        return wordified
    if args.word != None:
        numerized = words_to_number(args.word, args.format)
        print('Wordified Number:', args.word)
        print('Number', numerized)
        return numerized
    if args.all != None:
        all_words = all_wordifications(args.all)
        for ind, wordified in enumerate(all_words):
            print('{}: '.format(ind + 1), wordified, end='\n')
        print('Found {} Wordifications'.format(len(all_words)))
        return all_words
    if args.filtered != None:
        filtered_words = filtered_wordifications(args.filtered, args.dict)
        for ind, wordified in enumerate(filtered_words):
            print('{}: '.format(ind + 1), wordified, end='\n')
        print('Found {} Wordifications'.format(len(filtered_words)))
        return filtered_words
    if args.create != None:
        create_dictionary(args.input, args.output)
        print('Your new dictionary can be found at: {}'.format(args.output))


if __name__ == '__main__':
    args = parser.parse_args()
    main(args)

from Utils.filtered_wordifications import *
from Utils.create_dictionary import *
from Utils.utils import *

from all_wordifications import *
from number_to_words import *
from words_to_number import *

import argparse

parser = argparse.ArgumentParser()

parser.add_argument("-n", "--wordify", action = "store",
    dest = "number", help = "Suggest a Wordification for the US Phone Number")

parser.add_argument("-w", "--numerize", action = "store",
    dest = "word", help = "Convert the Wordified Number to a Phone Number")

parser.add_argument("-f", "--format", action = "store",
    dest = "format", default="1-xxx-xxx-xxxx",
    help = "Specify a Format for Conversion to a Phone Number")

parser.add_argument("-a", "--all", action = "store",
    dest = "all", help = "Find all Wordifications of a US Phone Number")

parser.add_argument("-filter", "--filtered", action = "store",
    dest = "filtered", help = "Find the Filtered Wordifications of a US Phone Number")

parser.add_argument("-d", "--dict", action = "store",
    dest = "dict", default = "Utils/words_alpha_mod.txt",
    help = "Specify Dictionary")

parser.add_argument("-i", "--input", action = "store",
    dest = "input", default = "Dictionaries/",
    help = "Provide the directory path which contains the smaller dictionaries")

parser.add_argument("-o", "--output", action = "store",
    dest = "output", default = "Utils/custom_final_dictionary.txt",
    help = "Provide the filepath (including a filename of your choice) to output the final dictionary")

parser.add_argument("-c", "--create", action = "store",
	dest = "create", help = "To Create a Dictionary")

def main(args):
    
    # wordify a given phone number and print out one wordification
    if args.number != None:
        
        wordified = number_to_words(args.number, args.dict)
        
        print("Number:", args.number)
        print("Wordified Number:", wordified)
        
        return wordified

    # numerize a string into the format of your choice
    if args.word != None:
        
        numerized = words_to_number(args.word, args.format)
        
        print("Wordified Number:", args.word)
        print("Number", numerized)
        
        return numerized

    # wordify a phone number of your choice and print out all possible wordifications
    if args.all != None:
        
        all_words = all_wordifications(args.all) 
        
        for ind, wordified in enumerate(all_words):
            print("{}: ".format(ind+1), wordified, end='\n')
        
        print("Found {} Wordifications".format(len(all_words)))
        
        return all_words

    # wordify a phone number of your choice and print out the filtered wordifications
    if args.filtered != None:
        
        filtered_words = filtered_wordifications(args.filtered, args.dict) 
        
        for ind, wordified in enumerate(filtered_words):
            print("{}: ".format(ind+1), wordified, end='\n')
        
        print("Found {} Wordifications".format(len(filtered_words)))
        
        return filtered_words

    # create a Dictionary of your choice
    if args.create != None:
    	create_dictionary(args.input, args.output)
    	print("Your new dictionary can be found at: {}".format(args.output))


if __name__ == "__main__":
    args = parser.parse_args()
    main(args)
