9 "from szyfrow.support.language_models import *\n",
10 "from szyfrow.support.utilities import *\n",
27 "output_type": "execute_result"
31 "words8 = [w for w in keywords if len(w) == 8]\n",
41 "anags8 = collections.defaultdict(list)\n",
43 " anags8[cat(sorted(w))] += [w]"
54 "['aegilnrt', 'aeginrst', 'deeinrst', 'ceeprsst', 'aeinrrst']"
59 "output_type": "execute_result"
63 "cands = [w for w in anags8 if len(anags8[w]) >= 5]\n",
74 "output_type": "stream",
76 "aegilnrt ['alerting', 'altering', 'integral', 'relating', 'triangle']\n",
77 "aeginrst ['angriest', 'gantries', 'granites', 'ingrates', 'rangiest', 'tangiers']\n",
78 "deeinrst ['dniester', 'inserted', 'nerdiest', 'resident', 'trendies']\n",
79 "ceeprsst ['respects', 'scepters', 'sceptres', 'specters', 'spectres']\n",
80 "aeinrrst ['restrain', 'retrains', 'strainer', 'terrains', 'trainers']\n"
86 " print(c, anags8[c])"
91 "execution_count": null,
99 "display_name": "Python 3",
100 "language": "python",
108 "file_extension": ".py",
109 "mimetype": "text/x-python",
111 "nbconvert_exporter": "python",
112 "pygments_lexer": "ipython3",