-
-
Save thcipriani/8f16f00f1c3f68e96d8c7e85c56f2900 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
git-commit-words | |
~~~~~~~~~~~~~~~~ | |
Find words that can be spelled with hex. | |
Uses /usr/share/dict/words and the Crossword-Nexus [wordlist][1] | |
[1]: <https://github.com/Crossword-Nexus/collaborative-word-list> | |
""" | |
LETTERS="ABCDEFIOS" | |
LETTER_SET = set(list(LETTERS)) | |
def transpose(word): | |
word = word.strip() | |
letter_set = set(list(word)) | |
if LETTER_SET.issuperset(letter_set): | |
if len(word) == 7: | |
print(word) | |
with open('collaborative-word-list/xwordlist.dict', 'r') as f: | |
for line in f.readlines(): | |
word, score = line.split(';') | |
if len(word) == 7 and int(score) > 10: | |
transpose(word) | |
with open('/usr/share/dict/words', 'r') as f: | |
for line in f.readlines(): | |
word = line.strip().upper() | |
if len(word) == 7: | |
transpose(word) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ABADABA | |
ABASIAS | |
ABIOSES | |
ABIOSIS | |
ABSCESS | |
ABSCISE | |
ACACIAS | |
ACCEDED | |
ACCEDES | |
ACCIDIA | |
ACCIDIE | |
ACEDIAS | |
ADASCID | |
ADEEDOO | |
ADIOSES | |
ADOSEOF | |
AECIDIA | |
ASCESES | |
ASCESIS | |
ASCIDIA | |
ASISAIDISIS | |
BABESIA | |
BABIECA | |
BADASS ← Nice. | |
BADCASE | |
BADCESS | |
BADDEED | |
BADDIES | |
BADIDEA | |
BADSEED | |
BADSIDE | |
BAFFIES | |
BAOBABS | |
BASEFEE | |
BASIDIA | |
BEADDED | |
BEBASED | |
BEBEDOC | |
BEDSIDE | |
BEEBEES | |
BESIDES | |
BESSIES | |
BIASSED | |
BIASSES | |
BIBASIC | |
BIDDIES | |
BIFACES | |
BIFFIES | |
BIOBEDS | |
BIOCIDE | |
BOBBIES | |
BOBCOBB | |
BOCCIAS | |
BOCCIES | |
BODICES | |
BOISEID | |
BOOBIES | |
BOOBOOS | |
BOOSOFF | |
BOSSIES | |
CABBIES | |
CABOOSE | |
CADDICE | |
CADDIED | |
CADDIES | |
CASABAS | |
CASCADA | |
CASCADE | |
CASEASE | |
CASEOSE | |
CASSABA | |
CASSIAS | |
CASSIES | |
CDCASES | |
CEBOIDS | |
CEFOBID | |
CICADAE | |
CICADAS | |
CISCOES | |
CISSIES | |
CISSOID | |
COCCIDS | |
COCCOID | |
CODEIAS | |
CODICES | |
COFFEES | |
COIFFED | |
COIFFES | |
DADBODS | |
DADDIES | |
DAISIED | |
DAISIES | |
DASSIES | |
DCCCIII | |
DDDDDDD | |
DEADASA | |
DEADSEA | |
DEAFAID | |
DEBASED | |
DEBASES | |
DEBBIES | |
DECADES | |
DECEASE | |
DECIDED | |
DECIDES | |
DECISIS | |
DECODED | |
DECODES | |
DEEDIDO | |
DEFACED | |
DEFACES | |
DEICIDE | |
DEIFIED | |
DEIFIES | |
DESEEDS | |
DIABASE | |
DIACIDS | |
DIBASIC | |
DIEDOFF | |
DIESOFF | |
DIOCESE | |
DISCASE | |
DISCOED | |
DISCOES | |
DISCOID | |
DISEASE | |
DOASIDO | |
DOBBIES | |
DOOBIES | |
DOODADS | |
DOSADOS | |
DOSIDOS | |
EASEOFF | |
ECOCIDE | |
EDIFICE | |
EDIFIED | |
EDIFIES | |
EFFACED | |
EFFACES | |
ESOBESO | |
ESSEDES | |
FACADES | |
FACEOFF | |
FASCIAE | |
FASCIAS | |
FBICASE | |
FEOFFED | |
FEOFFEE | |
FIASCOS | |
FOBSOFF | |
FOODIES | |
IACOCCA | |
IODIDES | |
IODISED | |
IODISES | |
IOOOOOO | |
ISAIDSO | |
ISODOSE | |
ODESSAS | |
OFEIBEA | |
OFFBASE | |
OFFICES | |
OFFICIO | |
OFFSIDE | |
OSSIFIC | |
SACCADE | |
SADCAFE | |
SADCASE | |
SADFACE | |
SAIDBOO | |
SAIDIDO | |
SASSIES | |
SCABBED | |
SCABIES | |
SCOFFED | |
SCOOBAS | |
SEABASS | |
SEABEDS | |
SEABEES | |
SEAFOOD | |
SEASIDE | |
SEBACIC | |
SEBASIC | |
SECEDED | |
SECEDES | |
SEEDBED | |
SEEFOOD | |
SEESOFF | |
SISSIES | |
SODDIES | |
SOFABED | |
SSSSSSS | |
ABBASID | |
IACCOCA | |
SEASIDE | |
ABSCESS | |
ACACIAS | |
ACCEDED | |
ACCEDES | |
BAOBABS | |
BEDSIDE | |
BESIDES | |
BIASSED | |
BIDDIES | |
BOBBIES | |
BODICES | |
BOOBIES | |
CABBIES | |
CABOOSE | |
CADDIED | |
CADDIES | |
CASCADE | |
CASSIAS | |
CICADAE | |
CICADAS | |
CODICES | |
COFFEES | |
COIFFED | |
DADDIES | |
DAISIES | |
DEBASED | |
DEBASES | |
DECADES | |
DECEASE | |
DECIDED | |
DECIDES | |
DECODED | |
DECODES | |
DEFACED | |
DEFACES | |
DEIFIED | |
DEIFIES | |
DIOCESE | |
DISCOED | |
DISEASE | |
DOODADS | |
EDIFICE | |
EDIFIED | |
EDIFIES | |
EFFACED | |
EFFACES | |
FACADES | |
FIASCOS | |
OFFICES | |
OFFSIDE | |
SCABBED | |
SCABIES | |
SCOFFED | |
SEABEDS | |
SEAFOOD | |
SEASIDE | |
SECEDED | |
SECEDES | |
SISSIES |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment