Thread:Talk:Universal Language Selector/m x n language names/reply (3)

I don't think you need to predict anything. Just start a list of messages whose names are the languages recognized in Wikimedia's current scheme. People translate them as necessary in the usual way.

Then you have a sparse matrix, where there's probably an entry for Basque->Spanish but almost certainly not for Basque->Navajo. Enter these into a database structure, of some kind that allows for prefix searches, probably server-side, and make that power your autocompleting form.