Language encoding and combinatorics for English, Portuguese, and Tagalog