compute reverse dictionary at import time