1. A system for assigning grammatical elements to a textual input comprising a phrase selected from a plurality of phrases, the system comprising: a grammatical element prediction component implemented on a processor of a computing device, the grammatical element prediction component comprising: at least one statistical local model configured to determine whether a grammatical element is to be assigned to the selected phrase and, if so, to identify at least one of a plurality of different grammatical elements to be assigned to the selected phrase, the grammatical elements identified by the at least one statistical local model comprising at least one of function words, case markers, and inflections, wherein the at least one statistical local model identifies the at least one grammatical element based on the selected phrase independent of other phrases of the plurality of phrases; and a statistical joint model that is separate from the at least one statistical local model and is configured to determine whether a grammatical element is to be assigned to the selected phrase and, if so, to identify at least one of a plurality of different grammatical elements to be assigned to the selected phrase, the grammatical elements identified by the statistical joint model comprising at least one of function words, case markers, and inflections, wherein the statistical joint model identifies the at least one grammatical element to be assigned to the selected phrase based on grammatical elements assigned to at least one other phrase of the plurality of phrases by at least one statistical local model; and an output component configured to output at least one of the selected phrase with an assigned grammatical element and an indication that no grammatical element is assigned to the selected phrase.