build wildcard dictionary