#!/usr/bin/env python2.7

import re, sys

ord_offset = ord('a')

letter_bits = []

for i in range(0, ord('z') - ord_offset):
  letter_bits.append(2**i)

for line in sys.stdin:
  line = re.sub('[\W\d]+', ' ', line)
  for word in line.split():
    print word


@@ -115,19 +115,23 @@
 d_offset
+ + 1
 ):%0A
-
   letter
@@ -247,16 +247,175 @@
     
-print word
+if len(word) %3C 4:%0A      continue%0A    word = word.lower()%0A    id = 0%0A    for c in word:%0A      id %7C= letter_bits%5Bord(c) - ord_offset%5D%0A    print %22%7B%7D is %7B%7D%22.format(word, id)
 %0A%0A

Anagram now converts each string to identifiers