# Path: languages/english.py
# TRIPLE_SCORES = {}
# 
# Path: languages/utils.py
# def word_score(word, triple_scores):
#     triples = list(word_triples(word))
#     result = 0.0
#     for triple in triples:
#         result += triple_scores.get(triple, 0.0)
#     return result / len(triples)


import os
import sys
from common.appenginepatch.aecmd import setup_env
from languages import english
from languages.utils import word_score
#!/usr/bin/env python

# Setup project environment in the parent directory.
sys.path[0] = os.path.dirname(sys.path[0])
setup_env()


LETTERS = 'abcdefghijklmnopqrstuvwxyz'

for c1 in LETTERS:
    for c2 in LETTERS:
        for c3 in LETTERS:
            for c4 in LETTERS:
                for c5 in LETTERS:
                    word = ''.join((c1, c2, c3, c4, c5))

# Path: languages/english.py
# TRIPLE_SCORES = {}
# 
# Path: languages/utils.py
# def word_score(word, triple_scores):
#     triples = list(word_triples(word))
#     result = 0.0
#     for triple in triples:
#         result += triple_scores.get(triple, 0.0)
#     return result / len(triples)


# Path: tools/short_readable.py
import os
import sys
from common.appenginepatch.aecmd import setup_env
from languages import english
from languages.utils import word_score

#!/usr/bin/env python

# Setup project environment in the parent directory.
sys.path[0] = os.path.dirname(sys.path[0])
setup_env()


LETTERS = 'abcdefghijklmnopqrstuvwxyz'

for c1 in LETTERS:
    for c2 in LETTERS:
        for c3 in LETTERS:
            for c4 in LETTERS:
                for c5 in LETTERS:
                    word = ''.join((c1, c2, c3, c4, c5))

                    score = word_score(word, english.TRIPLE_SCORES)