COMPUTER-AIDED WRITING SYSTEM AND METHOD WITH CROSS-LANGUAGE WRITING WIZARD

Abstract: A computer-aided writing system offers assistance to a user writing in a non-native language, as the user needs help, without requiring the user to divert attention away from the entry task. The writing system provides a user interface (UI) that integrates writing assistance with in-line text entry. When the user is unsure of a word's spelling or whether the word is appropriate, the user may enter a corresponding native word directly in line with the ongoing sentence. An error tolerant spelling tool accepts the native word (even if it is misspelled or mistyped) and derives the most probable non-native word for the given context. The spelling tool consults a bilingual dictionary to determine possible non-native word translation candidates, a non-native language model (e.g., a trigram language model) to generate probabilities associated with the candidates given the current sentence or phrase context, and a translation model to generate probabilities of how likely a certain native word was intended given the non-native word candidates. From these probabilities, the spelling tool determines the most probable non-native word translation and substitutes the non-native word for the native input string. If the user likes the non-native word, the user may simply continue with the sentence. On the other hand, if the user is still unsure of the non-native word, the user can invoke a sentence recommendation tool that allows the user to see the non-native word in a bilingual sentence pair to learn how the word can be used.

Description: COMPUTER-AIDED WRITING SYSTEM AND METHOD WITH CROSS- LANGUAGE WRITING WIZARD TECHNICAL FIELD The present invention relates to a machine-aided writing systems and methods. More particularly, the present invention relates to a language input user interface and underlying architecture that facilitates entry of multiple languages and assists users with entry of non-native languages. BACKGROUND OF THE INVENTION With the rapid development of the Internet, computer users all over the world are becoming increasingly familiar with writing English. Unfortunately, for some societies that possess significantly different cultures and writing styles, the ability to write in English is an ever-present barrier. This is not due to lack of knowledge, as research suggests that many non-English users have sufficient knowledge of English to easily discriminate between a sentence written in native- English and a sentence written in broken English. English is used an example, but the problem persists across other language boundaries. Consider the plight of a Chinese user. Typically, when a Chinese user wants to write an English word/phrase in which he is unfamiliar with its spelling or usage, the user usually looks up the word/phrase in a Chinese-English dictionary. If the dictionary is an electronic dictionary, the user must input the Chinese word/phrase via some input mechanism. This process suffers three shortcomings. First, it is not convenient for a Chinese user to input a Chinese word/phrase. Second, forcing the user to enter a Chinese word/phrase interrupts the user's train of- thought when writing in English. Third, as a non-native speaker of English, it is difficult for a Chinese user to select a suitable word from the dictionary. Accordingly, there is a need for a machine-aided writing system that helps non-English users with spelling, grammar, and writing as a native-English user. As envisioned by the inventors, such a machine-aided writing system should act as a consultant that provides various kinds of help whenever necessary, and allows the users to control the writing. Such a system might provide spelling help to assist users with hard-to-spell words and simultaneously check the usage in a certain context. The machine-aided writing system might further provide some form of sentence help to let users refine the writing by providing perfect example sentences. Several machine-aided approaches have been proposed. The approaches typically fall into two categories: (1) automatic translation, and (2) translation memory. Both work at the sentence level. The former attempts to automatically translate sentences entered by the user into sentences that are grammatically and stylistically correct. However, the quality of fully automatic machine translation in the current system is not completely satisfactory because a significant amount of manual editing is needed following such translation to ensure the high quality. The translation memory approach works like a case-based system in that, given a sentence, the system retrieves similar sentences from a translation example database. The user then translates the subject sentence by analogy. While both approaches offer some advantages, there remains room to improve the user experience with computer-aided writing systems. More particularly, there is a need for a computer-aided writing system that allows non- English user to collaborate with the computer in a way that achieves the highest quality writing with less brute force effort. SUMMARY OF THE INVENTION A computer-aided writing system offers assistance to a user writing in a non- native language, as the user needs help, without requiring the user to divert attention away from the entry task. The writing system provides a user interface (UI) that integrates writing assistance with normal text entry. The writing system provides assistance to users who are having difficulty spelling a non-native word or selecting the appropriate word for a given context. The writing system also provides sample sentence structures to demonstrate how words are used and how sentences are properly crafted. In the described implementation, the writing system is implemented as a writing wizard for a word-processing program. The writing wizard is exposed via a graphical UI that allows the user to enter words in a non-native language. When the user is unsure of a word's spelling or whether the word is appropriate, the user may enter a corresponding native word directly in line with the ongoing sentence. An error tolerant spelling tool accepts the native word (even if it is misspelled or mistyped) and attempts to derive the most probable non-native word for the given context. The spelling tool utilizes a bilingual dictionary to determine possible non-native word translation candidates. These candidates are passed to a non-native language model (e.g., a trigram language model) and a translation model. The non-native language model generates probabilities associated with the candidates given the current sentence or phrase context. The translation model generates probabilities of how likely a native word is intended given the non-native word candidates. From these probabilities, the spelling tool determines the most probable non-native word translation. The writing wizard substitutes the non-native word for the native input string. To the user, the substitution takes place almost immediately after entering the native input string. If the user likes the non-native word, the user may simply continue with the sentence. On the other hand, if the user is still unsure of the non-native word, the user can invoke more assistance from the writing wizard. For instance, the writing wizard has a sentence recommendation tool that allows the user to see the non- native word in a sentence context to learn how the word can be used. A window containing example bilingual sentence pairs is presented to the user so that the user can learn how the non-native word is used in the sentence and see the corresponding sentence written in the native language. In addition, the wizard can present a list of other native word translations of the input string, as well as a list of other non-native word candidates. The user can select any one of these words and review the selected word in a sample pair of bilingual sentences. In this manner, the spelling tool and sentence recommendation tool work together in a unified way to greatly improve the productivity of writing in a non-native language. BRIEF DESCRIPTION OF THE DRAWINGS The same numbers are used throughout the Figures to reference like components and features. Fig. 1 is a block diagram of a computer system that implements a writing system with a cross-language writing wizard. Fig. 2 is a block diagram of a software architecture of the cross-language writing wizard. Fig. 3 is an illustration of a word-level translation between words in a first language and words in a second language. Fig. 4 is a flow diagram of a process for providing writing assistance to a user who is attempting to write in a non-native language. Fig. 5 is a diagrammatic illustration of a screen display of a user interface for the writing system. Fig. 5 illustrates an in-line input feature of the UI. Fig. 6 is a screen display corresponding to the Fig. 5 display that is adapted for a Chinese-English version of the writing system. Fig. 7 is a diagrammatic illustration of a screen display of the writing system UI that depicts automatic conversion from an input string in a native language (e.g., Pinyin) to a non-native word (e.g., English). Fig. 8 is a screen display corresponding to the Fig. 7 display that is adapted for a Chinese-English version of the writing system. Fig. 9 is a diagrammatic illustration of a screen display of the writing system UI that depicts alternative translations of the input string within the native language (e.g., alternative Chinese words translated from the Pinyin). Fig. 10 is a screen display corresponding to the Fig. 9 display that is adapted for a Chinese-English version of the writing system. Fig. 11 is a diagrammatic illustration of a screen display of the writing system UI that depicts alternative translations of non-native words based on a selected native word (e.g., possible English words corresponding to a Chinese word). Fig. 12 is a screen display corresponding to the Fig. 11 display that is adapted for a Chinese-English version of the writing system. Fig. 13 is a diagrammatic illustration of a screen display of the writing system UI that depicts sample bilingual sentences using a selected non-native word. Fig. 14 is a screen display corresponding to the Fig. 13 display that is adapted for a Chinese-English version of the writing system. Fig. 15 is a diagrammatic illustration of a screen display of the wπting system UI that depicts sample bilingual sentences invoked directly in response to user entry of native language text. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A computer-aided writing system helps a user write m a non-native language by offering consultation assistance for spelling and sentence structure. The writing system implements a statistical spelling tool that assists in spelling and a sentence recommendation tool that intelligently recommends example sentences. The tools are exposed through a user interface as an integrated mechanism that highly improves the productivity of wntmg in a non-native language. The writing system and methods are described as helping non-English users write in English. In particular, one exemplary implementation used throughout this disclosure for illustration purposes is directed to a Chinese user who is writing in English. However, the principles and concepts described herein may be readily ported to other languages and users of other nationalities. For discussion purposes, the computer-aided writing system is described in the general context of word processing programs executed by a general-purpose computer. However, the computer-aided writing system may be implemented m many different environments other than word processing (e.g., email systems, browsers, etc.) and may be practiced on many diverse types of devices. System Architecture Fig. 1 shows an exemplary computer system 100 having a central processing unit (CPU) 102, a memory 104, and an input/output (I/O) interface 106. The CPU 102 communicates with the memory 104 and I/O interface 106. The memory 104 is representative of both volatile memory (e.g., RAM) and non-volatile memory (e.g., ROM, hard disk, etc.). Programs, data, files, and may be stored in memory 104 and executed on the CPU 102. The computer system 100 has one or more peripheral devices connected via the I/O interface 106. Exemplary peripheral devices include a mouse 110, a keyboard 112 (e.g., an alphanumeric QWERTY keyboard, a phonetic keyboard, etc.), a display monitor 114, a printer 116, a peripheral storage device 118, and a microphone 120. The computer system may be implemented, for example, as a general-purpose computer. Accordingly, the computer system 100 implements a computer operating system (not shown) that is stored in memory 104 and executed on the CPU 102. The operating system is preferably a multi-tasking operating system that supports a windowing environment. An example of a suitable operating system is a Windows brand operating system from Microsoft Corporation. It is noted that other computer system configurations may be used, such as hand-held devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, and the like. In addition, although a standalone computer is illustrated in Fig. 1, the language input system may be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network (e.g., LAN, Internet, etc.). In a distributed computing environment, program modules may be located in both local and remote memory storage devices. The computer system 100 implements a writing system that serves two functions: (1) language conversion and (2) assisting writing in non-native languages. The first function is to receive input strings (e.g., phonetic text) and convert the input strings automatically to output strings (e.g., language text). The conversion process is tolerant to spelling and entry errors. The second function is to aid users in writing words and sentences in non-native languages by offering spelling assistance and guidance as to correct sentence structure and style. The writing system is implemented in Fig. 1 as a data or word processing program 130 stored in memory 104 and executed on CPU 102. The word processing program 130 implements a language input architecture 132 that performs the language conversion and writing assistance. The language input architecture 132 has a conversion system 134 to perform the conversion function and a cross-language wizard 136 to assist the user when entering non-native text. The conversion system 134 and cross-language wizard 136 are exposed via a unified user interface (UI) 138. The word processing program 130 may include other components in addition to the architecture 132, but such components are considered standard to word processing programs and will not be shown or described in detail. Conversion System 134 The conversion system 134 converts input strings in one form (e.g., phonetic text characters) to an output string of another form (e.g., language text characters). It includes a search engine 140, one or more typing models 142, a language model 144, and one or more lexicons 146 for various languages. The architecture 132 is language independent. The UI 138 and search engine 140 are generic and can be used for any language. The architecture 132 is adapted to a particular language by changing the language model 144, the typing model 142 and the lexicon 146. The user enters an input string via one or more of the peripheral input devices, such as the mouse 110, keyboard 112, or microphone 120. In this manner, a user is permitted to input phonetic information using keyed entry or oral speech. In the case of oral input, the computer system may further implement a speech recognition module (not shown) to receive the spoken words and convert them to phonetic text The following discussion assumes that entry of text via keyboard 112 is performed on a full size, standard alphanumeric QWERTY keyboard. The UI 138 displays the input string as it is being entered The UI 138 is preferably a graphical user interface. A more detailed discussion of the UI 138 is found in the above-referenced U.S. Patent Application Serial No. , entitled "Language Input User Interface". As one example, the input string contains phonetic text or a mixture of phonetic and non-phonetic text. "Phonetic text" generally refers to an alphanumeric text representing sounds made when speaking a given language. "Non-phonetic text" is alphanumeric text that does not represent sounds made when speaking a given language. Non-phonetic text might include punctuation, special symbols, and alphanumeric text representative of a written language other than the language text. The conversion system 134 converts the phonetic text to language text. A "language text" is the characters and non-character symbols representative of a written language. Perhaps more generally stated, phonetic text may be any alphanumeric text represented in a Roman-based character set (e.g., English alphabet) that represents sounds made when speaking a given language that, when written, does not employ the Roman-based character set Language text is the written symbols corresponding to the given language For discussion purposes, word processor 130 is described in the context of a Chinese-based word processor and the language input architecture 132 is configured to convert Pinyin to Hanzi. That is, the phonetic text is Pinyin and the language text is Hanzi. However, the language input architecture is language independent and may be used for other languages. For example, the phonetic text may be a form of spoken Japanese (hiragana, katakana), whereas the language text is representative of a Japanese written language, such as Kanji. Many other examples exist including, but not limited to, Arabic languages, Korean language, Indian language, other Asian languages, and so forth. The user interface 138 passes the phonetic text (P) to the search engine 140, which in turn passes the phonetic text to the typing model 142. The typing model 142 generates various typing candidates (T , ..., TC N ) that might be suitable edits of the phonetic text intended by the user, given that the phonetic text may include errors. The typing model 142 returns multiple typing candidates with reasonable probabilities to the search engine 140, which passes the typing candidates onto the language model 144. The language model 144 evaluates the typing candidates within the context of the ongoing sentence and generates various conversion candidates (C , ..., CC N ) written in the language text that might be representative of a converted form of the phonetic text intended by the user. The conversion candidates are associated with the typing candidates. Conversion from phonetic text to language text is not a one-for-one conversion. The same or similar phonetic text might represent a number of characters or symbols in the language text. Thus, the context of the phonetic text is interpreted before conversion to language text. On the other hand, conversion of non-phonetic text will typically be a direct one-to-one conversion wherein the alphanumeric text displayed is the same as the alphanumeric input. The conversion candidates (CQ, ..., CC N ) are passed back to the search engine 140, which performs statistical analysis to determine which of the typing and conversion candidates exhibit the highest probability of being intended by the user. Once the probabilities are computed, the search engine 140 selects the candidate with the highest probability and returns the language text of the conversion candidate to the UI 138. The UI 138 then replaces the phonetic text with the language text of the conversion candidate in the same line of the display. Meanwhile, newly entered phonetic text continues to be displayed in the line ahead of the newly inserted language text. If the user wishes to change language text from the one selected by the search engine 140, the user interface 138 presents a first list of other high probability candidates ranked in order of the likelihood that the choice is actually the intended answer. If the user is still dissatisfied with the possible candidates, the UI 138 presents a second list that offers all possible choices. The second list may be ranked in terms of probability or other metric (e.g., stroke count or complexity in Chinese characters). Cross-Language Wizard 136 The word processing program 130 may alternatively, or additionally, be used to write primarily in a non-native language. The cross-language writing wizard 136 lends the support needed to write effectively in the non-native language. The user enters the non-native language via UI 138. When the user is unsure how to write a word or phrase, the user may enter the word in his/her native language. The writing wizard 136 recognizes the different language input and offers effective help without diverting the user's attention from the entry task. The wizard provides spelling assistance and recommends sentence structures and styles as a way to improve the user's writing. Suppose, for example, a Chinese user wants to write text in English. The user writes an English sentence in an entry area presented by the UI 138. When the user is unsure how to express a thought in English, the user may decide to write in familiar Chinese Pinyin. The writing wizard 136 recognizes the Pinyin input, and translates the Pinyin into the most suitable English word immediately. The correlative Chinese word will be shown beside the English word for the user's reference. If the user thinks the English word is not quite right, the user may request other English words related to the Chinese Pinyin. If the user is not sure which English word is best in this context, the user may browse Chinese-English bilingual sentence examples in which the Chinese word and the English word are presented together. The context information helps the user decide which word is the best fit for the present context. In addition, the user can input a Chinese sentence pattern directly, and select an appropriate English sentence type by browsing bilingual sentence examples. Exemplary Writing Wizard Architecture Fig. 2 illustrates an exemplary writing wizard architecture 200 that integrates the user interface 138 and the writing wizard 136. The writing wizard architecture 200 allows a user to enter characters in one or more languages via the UI 138 and offers help when the user needs it without diverting the user's attention away from the entry area. The writing wizard 200 has a spelling tool 202 to provide spelling assistance on the word or phrase level and a sentence recommendation tool 204 to offer helpful suggestions regarding sentence structure. The tools 202 and 204 work together to provide assistance as needed by the user. Again, for discussion purposes, the tools are described in the context of a Chinese user writing in English. However, the tools may be implemented in any combination of languages. Spelling Tool 202 The spelling tool 202 performs two primary functions. The first function is to offer a synonym or antonym associated with the English word entered by the user. The spelling tool accesses an English thesaurus 210 to retrieve the synonym or antonym of the English word. The second function of spelling tool 202 is translate a native word entered by the user to a non-native word. The spelling tool provides a translator 212 that automatically converts an entered string to a native word familiar to the user. For instance, a Chinese user may input a Pinyin string and the translator 212 converts the Pinyin to a Chinese word in Hanzi characters. The translator 212 may be implemented to include a polyphone model that expands Pinyin possibilities for a Chinese word (e.g., Chinese word ' D ' has two pinyin sets "le" and "yue"), a fault tolerance model that accepts misspellings and entry errors, and a simplified Pinyin model (e.g., allows user to input "hj" for "huanjing"). Following the initial form conversion, the translator 212 then translates the native word to a suitable non-native word that may be used in the ongoing sentence. In the illustrated implementation involving a Chinese-English writing system, the translator 212 uses three models to provide the translation: (1) an English language model 214, (2) a Chinese-English bilingual dictionary 216, and (3) an English- Chinese translation model 218. The Chinese English bilingual dictionary 216 contains Chinese words and their corresponding English translations to provide possible English word translation candidates for the Chinese word. As an example, the dictionary 216 might include approximately 115,000 Chinese words and corresponding English translations. The dictionary 216 may also include other information, such as part- of-speech, semantic classification, and so forth. The English language model 214 generates probabilities associated with the English word candidates given the current sentence or phrase context. In one implementation, the English language model 214 is a statistical N-gram model, such as the N-gram Markov model, which is described in "Statistical Methods for Speech Recognition", by Frederick Jelinek, The MIT Press, Cambridge, Massachusetts, 1997. As one suitable example, the English language model 214 can be constructed as a tri-gram model (i.e., N=3) that employs approximately 240,000,000 tri-grams and a vocabulary with 58,000 words. The English-Chinese translation model 218 generates probabilities of how likely a Chinese word is intended given each of the English word candidates. In one implementation, the English-Chinese translation model 218 is a statistical model that is trained from a word-aligned bilingual corpus, which may be derived from corpus 224 (described below). The translation model 218 may be a trigram model if the training bilingual corpus is sufficiently large; otherwise, a bigram or unigram translation model may be used. Chinese sentences are segmented before word translation training because written Chinese consists of a character stream without spaces between words. Prior to training, a wordlist is used in conjunction with an optimization procedure to segment the sentences. One example of a suitable optimization procedure is described in an article written by Jianfeng Gao, Han-Feng Wang, Mingjing Li, and Kai-Fu Lee, entitled "A unified approach to statistical language modeling for Chinese", IEEE, ICASPP2000, 2000. After segmentation, the bilingual training process trains on the words. One suitable process is based on an iterative EM (expectation-maximization) procedure for maximizing the likelihood of generating an English word given a Chinese character or word. The output of the training process is a set of potential English translations for each Chinese word, together with the probability estimate for each translation. One suitable EM procedure is described in an article by Brown. P.F., Jennifer C. Lai, and R.L. Merce, entitled "Aligning sentences in parallel corpora", In Proceedings of the 29 Annual Conference of the Association for Computational Linguistics, 169-176, Berkeley, 1991. The translator 212 uses the probabilities returned from the English language model 214 and the English-Chinese translation model 218 to determine the English word candidate with the highest probability of being the word intended by the user given the Pinyin string within the sentence context. The writing wizard 136 passes the optimal word back to the UI 138, which substitutes the English word for the Chinese Pinyin input string. To the user, the English word is almost immediately substituted after the Pinyin string is entered. To further demonstrate the spelling tool 204, suppose that a Chinese user inputs two English words EWj and EW 2 and then becomes unsure of how to spell or phrase the next word in English. The Chinese user enters a Pinyin string PY that expresses the user's intention. The spelling tool 202 passes the string PY to the translator 212, which looks up all candidate Chinese words from a Pinyin-Chinese dictionary. Fig. 3 shows the word-level Pinyin-English translation 300. The first row 302 shows the user-entered English words EWi and EW 2 and Pinyin PY. In the second row 304, the Pinyin string is translated to multiple Chinese words CWj, CW 2 , ..., CW m . The translator 212 then obtains a list of candidate English translations from the Chinese English bilingual dictionary 216 for each of the Chinese words CWj, CW 2 , ..., CW m . The third row 306 shows the English words EW JI , ..., EWj„ for the first Chinese word CWj and English words EW m j, ..., fiW mq for the last Chinese word CW m . The candidate English words in row 306 are initially returned in their original or root form and may not fit the context of the sentence. The translation model expands each word to other morphological forms. For instance, the root "go" is expanded to inflections such as "went", "goes", "going", and "gone". From the candidate list, the translator 212 attempts to select the best English word in this specified contextual condition and present that word to the user. The translator compares the probabilities of all English words in row 306 of Fig. 3 and selects the English word with the highest probability as the most proper translation of the Pinyin input string PY. This can be expressed statistically as the probability that English word candidate EW υ was intended by the user given the actual entry of PY, EWi, and EW 2 , which is written as follows: argmax (E)^ \ EW X ,EW 2 ,PY) EW„ According to Bayes law, the conditional probability is estimated as follows: P(PY\ EW λ ,EW 2 ,EW lJ ) xP(EW, J \ EW„EW 2 ) P(EW lJ \ EW„EW 2 ,PY) = P(PY\ EW ] ,EW 2 ) (1) Since the denominator is independent of EW υ and the same for all situations, the denominator may be omitted, leaving the following relationship: Introducing a Chinese word CW t into the term, P(PY \ EW ιp EW,, EW 2 ), yields the following: P(CW l \EW,EW 2 EW IJ )xP(PY\CW„EW,EW 2 ,EW ll ) P(PY\EW I ,EW 2 ,EW IJ ) = P(CW t \PY,EW„EW 2 ,EW y ) (3) For simplicity, the following assumptions are made: P(CW t I EW, , EW 2 ,EW V )* P(CW t \ EW y ) P(PY\CW„EW,EW 2 ,EW lJ ) P(PY\CW l ) P(CW t I PY, EW X , EW 2 , EW i} ) * 1 The assumptions permit an approximation of formula (3) as follows: P(PY\EW λ ,EW 2 ,EW lJ ) = P(CW l \EW lJ )xP(PY\CW 1 ) (4) Combining formulas (2) and (4) provides: l EW 1] \PY,EW,EW 2 )=l CW\EW υ )xl PY\CW)xl EW υ \EW,EW 2 ) (5) where the term P(CW, \EW tJ ) is the English-Chinese translation model 218, the term P(PY I CWJ is a polyphone model, which is set to 1, and the term P(EW y \ EW lt EW 2 ) is the English tri-gram language model 214. Accordingly, the original goal for the spelling tool may be restated as finding the most probable translation of the Pinyin string PY by retrieving the English word with the highest conditional probability. argmax. P(EW β | EW V EW 2 ,PY) « arg ma P(CW_ \ EW ) χ P(EW \ EW„EW 1 ) EW V EW V Sentence Recommendation Tool 204 The sentence recommendation tool 204 operates at the sentence level to suggest possible sentences to assist the user in writing phrases and sentences correctly in a non-native language. When the user needs assistance, the user enters via UI 138 a sequence of keywords or a short phrase that attempts to convey the essence of the intended sentence. The sentence recommendation tool 204 employs a query expansion 220 to expand the query to relevant alternative expressions. The sentence recommendation tool 204 passes the expanded query to a sentence retrieval algorithm 222, which searches a large bilingual corpus 224. The sentence retrieval algorithm 222 returns one or more pairs of bilingual sentences expressing meanings relevant to the user's query or having syntactical relevance. The sentence pairs include the sentence written in the native language and the corresponding sentence properly written in the non-native language. The bilingual corpus 224 may be constructed in many ways. One approach is to collect sentence pairs from various online and offline sources, such as World Wide Web bilingual sites, dictionaries, books, bilingual news and magazines, and product manuals. As one example, the size of the bilingual corpus constructed by the inventors contains 96,362 sentence pairs. In the Fig. 2 architecture, the corpus 224 is used for the following three tasks: (1) Act as translation memory to support the sentence recommendation tool 204. (2) Support English-Chinese translation model 218 at word and phrase level. (3) Extract bilingual terms to enrich the Chinese-English bilingual dictionary 216. To construct a sentence-aligned bilingual corpus, an alignment algorithm automatically aligns sentences in the corpus and the results are corrected manually. Various alignment algorithms may be used, such as lexically based techniques and statistical techniques. Lexically based techniques use extensive online bilingual lexicons to match sentences, whereas statistical techniques require almost no prior knowledge and are based solely on the lengths of sentences. One unique approach to constructing a sentence-aligned bilingual corpus is to incorporate both lexically based and statistical techniques. The statistical technique is first used to obtain a preliminary result. Then, anchors are identified in the text to reduce complexity. An anchor is defined as a block that consists of n successive sentences. Experiments indicate that best performance is achieved when «=3. Finally, a small, restricted set of lexical cues is applied to the anchors for further improvement. Once the sentence-aligned bilingual corpus 224 is constructed, it may be used to enrich the Chinese-English bilingual dictionary 216. Two steps are made to extract bilingual terms from the sentence-aligned corpus 224. First, Chinese monolingual terms are extracted from the Chinese portion of the corpus 224. One method for this extraction is in an article by Lee-Feng Chien, entitled "PAT-tree- based adaptive key phrase extraction for intelligent Chinese information retrieval", special issue on "Information Retrieval with Asian Language", Information Processing and Management, 1998. Second, the corresponding English words are extracted from the English portion of the corpus 224 with word alignment information. The result is a candidate list of the Chinese-English bilingual terms. The list is evaluated and terms can be manually added to the bilingual dictionary 216. To demonstrate the sentence recommendation tool 204, suppose a user inputs a sequence of Chinese characters. The character string is initially segmented into one or more words. The segmented word string acts as the user query that is passed to the query expansion 220. Morphologically modified words or other expanded word forms are returned from the query expansion 220 to the sentence recommendation tool 204. Suppose that a user query is of the form multiple Chinese words CW CW 2 , ... , CW m . All synonyms for each word of the queries are listed based on a Chinese thesaurus (not shown, but included as part of the query expansion component 220), as shown below. CW U cw lx ■ ■ ■ cw mX cw n cw 22 ■ ■ ■ cw ml cw ι cw lnι ■ ■ C W mn„ : The query expansion 220 expands the query by substitutmg a word in the query with its synonym. To avoid over-generation, one implementation parameter is to restrict substitution to one word at each time. As an example, suppose the query is "D D D D". The synonyms list is as follows: DΠ=>DDDΠDDDDDDDDΠΠDDDD. DD=>DDDDDDDDD The query consists of two words. Substituting the first word results in expanded queries, such as "D D D", "D D D", "D D D D", etc. Substituting the second word yields expanded queries, such as "D D D D", "D D D D", "D D D D", etc. The sentence recommendation tool 204 selects an expanded query for use in retrieving example sentence pairs. One approach to selecting an appropriate query is to estimate the mutual information of words with the query as follows: arg max ∑ MI (CW k , CW y ) (6) Where CW k is the k-t Chinese word in the query, and CW υ is the j-th synonym of the z ' -th Chinese word. In the above example, "D D D D" is selected. The selection, though statistically derived, is a reasonable choice in this instance. The tool 204 passes the selected query to the sentence retrieval algorithm 222 to retrieve one or more pairs of bilingual sentences containing "D D D □". All the retrieved sentence pairs are ranked based on a scoring strategy. One implementation of a ranking algorithm will now be described. The input of the ranking algorithm is a query Q,, which is a Chinese word string, as shown below: Q= T T 2 , T 3 , ... T k The output is a set of relevant bilingual example sentence pairs in the form of: S={(C-Sent, E-Sent) \ Relevance(Q,C-Sent) > δ or Relevance(Q,E-Sent) > δj where C-Sent is a Chinese sentence, and E-Sent is an English sentence in a bilingual sentence pair, and δ is a threshold. For each sentence, the relevance score is computed in two parts: (1) a bonus that represents the similarity of the input query and the target sentence, and (2) a penalty that represents the dissimilarity of the input query and the target sentence. The bonus is computed by the following formula: m Bonus = ∑ log( W j X tf ) x \og( n /df ) / L, 7 = 1 J J where W is the weight of the y ' th word in query Q (described below), tfy is the number of times the y ' th word occurs in sentence i, n is the number of sentences in the corpus, dfjs the number of sentences that contain Wj, and J, is the number of words in the z ' th sentence. The above formula considers algebraic similarities. To account for geometric similarities, a penalty formula is used to derive an editing distance as a representation of geometric similarity. Suppose the matched word list between query Q and a sentence are: R . - Bonus , - Penalty represented as A and B, respectively, Aι, A 2 , A 3 , ... A m B l 5 B 2 , B 3 , ... B n The editing distance is defined as the number of editing operations to convert B to A. The penalty increases for each editing operation, but the score is different for different parts of speech. For example, the penalty is greater for verbs than nouns. Penalty = ∑ log( W] x E ,) x log( n i df . ) I L, 7 = 1 J where W } ' is the penalty of they ' th word and E, is the editing distance. The score and penalty for each kind of part-or-speech is defined in Table 1. Table 1 Part of Speech Score Penalty Noun 6 6 Verb 10 10 Adjective 8 8 Adverb 8 8 Preposition 8 8 Conjunction 4 4 Digit 4 4 Digit-classifier 4 4 Classifier 4 4 Exclamation 4 4 Pronoun 4 4 Auxiliary 6 6 Post-reposition 6 6 Idioms 6 6 The highest-ranking sentence pair is returned to the sentence recommendation tool 204 and suggested to the user via the UI 138. The user may then be better informed as to how the sentence should be constructed. General Operation Fig. 4 shows a general process 400 for assisting a user write non-native words, phrases, and sentences. The process is preferably implemented in software by the writing system, and particularly, the UI 138 and cross-language writing wizard 136. Accordingly, the process 400 may be implemented as computer- executable instructions that, when executed on a processing system such as CPU 102, performs the operations and task illustrated as blocks in Fig. 4. In keeping with the ongoing example implementation, the process is illustrated as pertaining to the Chinese-English writing environment, where English is the non-native language and Chinese is the native language. However, the process may be implemented in other languages. At block 402, the UI 138 receives a user-entered string consisting of English and Pinyin characters. If the characters form an English word (i.e., the "yes" branch from block 404), the writing wizard offers little help because it assumes that the user is not experiencing any trouble writing and spelling English words. Conversely, when the user is unsure how to spell an English word or which English word to use, user can enter a Pinyin string. When Pinyin is received (i.e., the "no" branch from block 404), the spelling tool 200 receives the Pinyin and passes it to the Chinese Word/Pinyin translator 212. At block 406, the translator 212 translates the Pmym string to one or more Chinese words (e.g., Hanzi characters) The translator 212 selects the most likely Chinese word translation based on statistical probabilities learned previously from a training corpus The translator 212 is also tolerant to errors entered by the user due to mistyping or misspelling. At block 408, the translator 212 consults the Chinese-English dictionary 216 to determine possible English word translation candidates At block 410, the translator 212 uses the English language model 214 to generate probabilities associated with the different English word candidates given the current sentence or phrase context In one implementation, the English language model 214 generates probabilities P(EW, j \ EW EW^, which are associated with the different English word candidates EW tJ given the previous two words EW, and EW 2 . At block 412, the translator 212 consults the English-Chinese translation model 218 to generate probabilities of how likely a Chinese word is intended given each of the English word candidates. For instance, the English-Chinese translation model 218 produces probabilities P(CW, \EW l} ), identifying how likely a Chinese word CW, is intended given the various English word candidates EW υ . At block 414, the translator 212 uses the probabilities returned from the English language model and the English-Chinese translation model to determine the English word candidate with the highest probability of being the word intended by the user given the Pmym string withm the sentence context. The writing wizard 136 passes the optimal word back to the UI 138, which substitutes the English word for the Chinese Pmym input string (block 416). To the user, the English word is essentially immediately substituted for the Pmym string The probability calculations are made at processing speeds that is negligible to the user. If the user likes the English word (i.e., the "yes" branch from block 418), the user may simply continue writing more English words or Pinyin strings. On the other hand, if the user is still unsure of the English word, the user can invoke more assistance from the writing wizard via some predefined input, such as pressing the "ESC" key (i.e., the "no" branch from block 418). In response to this user action, the writing wizard allows the user to see the English word in a sentence context to learn how the word can be used (block 420). The user can invoke a window with example bilingual sentence pairs extracted from the bilingual corpus 224 that contain the English word. In addition, the wizard presents a list of other Chinese word translations of the Pinyin string, as well as a list of other English word candidates. The user can select any one of these words and review the selected word in an example pair of bilingual sentences. Writing Wizard User Interface The remaining discussion is directed to features of the user interface 138 when presenting the writing wizard. In particular, the writing wizard user interface 138 allows user entry of bilingual words from a non-native language and a native language within the same entry line on the screen. Many of the features are described in the context of how they visually appear on a display screen. It is noted that such features are supported by the user interface 138 alone or in conjunction with an operating system. Figs. 5-15 show exemplary writing wizard user interfaces implemented as graphical UIs (GUIs) that are presented to the user as part of a word processing program or other computer-aided writing system. Odd Figs. 5, 7, 9, 11, and 13 present a generic graphical user interface (GUI) to illustrate various features of the writing wizard user interface. Even Figs. 6, 8, 10, 12, and 14 present a specific GUI for a Chinese-English machine writing system that corresponds to the generic user interface of Figs. 5, 7, 9, 11, and 13. Fig. 5 shows a screen display 500 presented by the language input UI 138 alone, or in conjunction with an operating system. In this illustration, the screen display 500 resembles a customary graphical window, such as those generated by Microsoft's Windows-brand operating system. The graphical window is adapted for use in the context of language input, and presents an in-line input area 502 in which non-native and native words may be entered by the user. The in-line area 502 is represented pictorially by the parallel dashed lines. An input cursor (not shown) may be used to mark the present position of data entry. The graphical UI may further include a plurality of tool bars, such as tool bars 504 and 508, or other functional features depending on the application (e.g., word processor, data processor, spread sheet, internet browser, email, operating system, etc.). Tool bars are generally known in the word or data processing art and will not be described in detail. In Fig. 5, the user has entered two non-native words EW; and EW 2 . For discussion purpose, symbol "EW" is used throughout the odd figures to represent a non-native word, such as an English Word, that has been input and displayed in the UI. When the user is uncertain how to spell the next non-native word, the user simply enters the corresponding word in his/her native language. In this example, the Chinese user enters Chinese Pinyin character PY at position 510 in the same entry area 502. The Chinese user enters Pinyin rather than Chinese words (e.g., Hanzi characters) because Pinyin can be conveniently entered using a standard QWERTY keyboard or voice recognition system. Pinyin is an example of phonetic text and Hanzi is an example of language text. Fig. 6 shows an example GUI 600 that corresponds to Fig. 5. The GUI 600 shows two English words 602 (e.g., "I have") followed by a Pmym string 604 (e.g., "wancheng") After entering the native word (e.g., Pmym) and pressing the "SPACE" key (or some other actuation), the cross-language wizard 136 automatically recognizes that the current input is a native word and not a non-native word. The spelling tool 202 converts the native word to a corresponding non-native word. If the native word is slightly misspelled or entered incorrectly, the spelling tool tolerates the errors and returns the most probable non-native word. The non-native word is then depicted in the in-line entry area 502 m place of the native word. Fig. 7 shows a screen display 700 presented by the language input UI 138 after the native word (e.g., PY) is converted to, and replaced with, a corresponding non-native word EW 3 . For each native input string, there may be more than one possible interpretation in the native language. The writing wizard uses the statistical approach described above to determine the most likely translation. As a result, the input string is first translated to corresponding words in the native language, and then the most probable native word is selected for subsequent translation mto non-native words. The most likely native word, represented as CWj, is shown beneath the converted non-native word EW 3 in a pop-up box 702. The user can view the native word box 702 to determine whether the translation is the one he/she intended. Fig. 8 shows an example GUI 800 that corresponds to Fig. 7. The GUI 800 shows the two English words "I have" followed by a third English word "accomplished", which is translated from the Pmym input string "wancheng" (Fig. 6). Beneath the translated word "accomplished" is a pop-up box 702 with the Chinese word "D D". In Chinese, the mapping from Pinyin to Chinese words is one-to-many, meaning that one Pinyin string may be translated to many different Chinese words. In addition, one Chinese word maps to many different English words. The pop-up box 702 contains the most probable Chinese Hanzi word from which the Pinyin was initially translated. This Chinese word was then translated to the English word "accomplished". If the user agrees with the English word, the user simply continues entering English words within the in-line entry area. On the other hand, if the user is not satisfied with the English word, the writing wizard 136 allows the user to change the selection via some user input, such as pressing the "ESC" key. Fig. 9 shows a screen display 900 presented by the language input UI 138 in response to the user pressing the "ESC" key (or some other cue) to change the selection. The writing wizard 136 restores the native input string PY at location 902, thereby replacing the automatically selected non-native word EW 3 (Fig. 7). The pop-up box 702 is expanded to include other possible translation of the input string, as represented by CWj and CW 2 . The most probable word CW } is positioned at the top and initially highlighted to indicate that it is statistically the most likely translation. The second most likely word CW 2 is listed beneath the most probable word. The user can select any one of the possible translations using conventional focus-and-select techniques (e.g., scrolling and entering, point-and- click, arrow and space keys, etc.). Fig. 10 shows an example GUI 1000 that corresponds to Fig. 9. The GUI 1000 shows the Pinyin input string "wancheng" restored in place of the English word "accomplished". Beneath the Pinyin input string "wancheng" is the pop-up box 702 with two Chinese words. Fig. 1 1 shows a screen display 1100 presented by the language input UI 138 in response to the user selecting the first-listed native word CW,. The native word CW, replaces the input string PY at location 1102. A second pop-up box 1104 is also presented that contains one or more possible non-native translations EW 3 , EW 4 , EW 5 , and EW 6 from the native word CW,. The top-listed candidate, EW 3 , is highlighted or otherwise identified in the box 1104. This candidate may initially be the most likely candidate. The user may browse the box 1104 to select a more desired non-native translation using standard navigation techniques (e.g., point-and- click, arrows and space/return keys, etc.). Fig. 12 shows an example GUI 1200 that corresponds to Fig. 11. The GUI 1200 shows the Chinese word "D D" substituted for the Pinyin input string "wancheng". Beneath the Chinese word is the pop-up box 1104 with five alternative English words. More or less words may be presented within the box 1104. The user can scroll the box 1104 using conventional navigation tools, such as up/down arrow keys and a scroll bar. If the user is still unsure of the correct English word, the user can invoke further assistance from the writing wizard by requesting a sample sentence that uses the English word. The user moves the focus to a desired word in the pop-up English word box 1104 and presses a keyboard key (e.g., the right arrow key) to invoke a window that contains a sample sentence. Fig. 13 shows a screen display 1300 presented by the language input UI 138 in response to the user placing the focus on the non-native word EW 3 in box 1104 and invoking a sample sentence window 1302. The window 1302 presents a bilingual sentence pair that contains a sentence written in native words CW 3 , CW 4 ,...CW N and a corresponding sentence written in non-native words EW 8 , EW 9 , ... EW M . The native word CWj and the corresponding non-native word EW 3 that is the subject of the bilingual sentence sample are highlighted or otherwise identified (e.g., italics, bold, etc.). The bilingual sample sentences help the user better understand how the non-native word is used in a particular context. Fig. 14 shows an example GUI 1400 that corresponds to Fig. 13. The GUI 1400 shows the pop-up box 1104 and a sample sentence window 1302 that uses the English word "completed" in a sentence. In this example, the English sentence reads "If there had not be a hard layer of rock beneath the soil, they would have completed the job in a few hours." The corresponding Chinese sentence written in Hanzi text is presented above the English sentence. After the user better understands the English word, and how it can be used in a sentence, the user can confirm entry of a suitable English word. Upon confirmation, the English word is substituted for the Chinese word following the two English words. The UI will then present only the three English words "I have completed", and the two pop-up windows 1104 and 1302 will be removed. Sentence Assistance The user may want help on how to construct a sentence properly. The writing wizard allows the user to enter a phrase or sentence directly. For instance, suppose the user enters the following Chinese phrase (either directly or via Pinyin input converted to Chinese words): #1 The user can then invoke the sample bilingual sentence window 1302 directly by pressing the "ESC" key, or by some other means. Fig. 15 shows a screen display 1500 presented by the language input UI 138 in response to the user entering the Chinese phrase and directly invoking the sentence window 1302. A corresponding pair of sentences — one in Chinese and one in English — that utilizes the Chinese phrase and English equivalence is presented in the window 1302. The subject phrases are highlighted or otherwise identified in the sentences. Conclusion Although the description above uses language that is specific to structural features and/or methodological acts, it is to be understood that the invention defined in the appended claims is not limited to the specific features or acts described. Rather, the specific features and acts are disclosed as exemplary forms of implementing the invention.

Claims: CLAIMS 1. A method comprising: receiving non-native words of a non-native language and at least one native word of a native language that are entered by a user; and converting the native word to a corresponding non-native word. 2. A method as recited in claim 0, wherein the non-native language is English and the native language is Chinese. 3. A method as recited in claim 0, wherein the non-native words are English words and the native word is Chinese Pinyin. 4. A method as recited in claim 0, wherein the native word is written in phonetic text. 5. A method as recited in claim 0, further comprising displaying the non- native words and the native word within a common entry line. 6. A method as recited in claim 0, wherein the converting comprises determining a most probable non-native word given a context established by the non-native words previously entered by the user. 7. A method as recited in claim 0, wherein the native word is entered in phonetic form, the converting further comprising: translating the native word from the phonetic form to a language form; and translating the native word in the language form to the non-native word. 8. A method as recited in claim 0, wherein the native word is entered in phonetic form, the converting further comprising: determining a most probable language form of the native word and translating the native word from the phonetic form to the most probable language form; and determining a most probable non-native word given the most probable language form of the native word. 9. A method as recited in claim 0, wherein the native word is entered in phonetic form and the converting comprises translating the native word from the phonetic form to one or more native words in a language form, the method further comprising displaying the one or more native words in the language form. 10. A method as recited in claim 9, further comprising: displaying the non-native words and the phonetic form of the native word within a common entry line; and displaying the one or more native words in the language form within a popup box adjacent the entry line. 11. A method as recited in claim 10, further comprising ordering the native words within the pop-up box according to probabilities. 12. A method as recited in claim 10, further comprising enabling a user to scroll within the pop-up box. 13. A method as recited in claim 0, wherein the native word is entered in phonetic form and the converting comprises: translating the native word from the phonetic form to one or more native words in a language form; displaying the one or more native words in the language form; translating at least one of the native words in the language form to one or more non-native words; and displaying the one or more non-native words. 14. A method as recited in claim 13, further comprising: displaying the non-native words and the phonetic form of the native word within a common entry line; and displaying the one or more native words in the language form within a popup box adjacent the entry line. 15. A method as recited in claim 13, further comprising: following translation to the one or more non-native words, displaying the non-native words and the language form of the native word within a common entry line; and displaying the one or more non-native words within a pop-up box adjacent the entry line. 16. A method as recited in claim 0, further comprising displaying a bilingual sentence pair having a native sentence written in the native language and including the native word and a corresponding non-native sentence written in the non-native language and including the non-native word. 17. One or more computer-readable media having computer-executable instructions that, when executed on a processor, direct a computer to perform the method as recited in claim 0. 18. A method comprising: displaying, via a user interface, character strings in a first language together with at least one character string of a second language as the user enters the character strings; converting the character string of the second language to another character string of the first language; and replacing the character string of the second language with said other character string of the first language in the user interface. 19. A method as recited in claim 18, wherein the first language is English and the second language is Chinese. 20. A method as recited in claim 18, further comprising displaying the character strings of the first and second languages within a common entry line. 21. A method as recited in claim 18, wherein the converting comprises determining a most probable character string given a context established by the character strings previously entered by the user. 22. One or more computer-readable media having computer-executable instructions that, when executed on a processor, direct a computer to perform the method as recited in claim 18. 23. A method comprising: receiving non-native words of a non-native language and at least one native word of a native language that are entered by a user; and presenting a candidate list of non-native words that are possible translations of the native word. 24. A method as recited in claim 23, wherein the non-native language is English and the native language is Chinese. 25. A method as recited m claim 23, further comprising displaying the non-native words and the native word withm a common entry line. 26. A method as recited in claim 23, further comprising presenting a sentence window with bilingual sentence pairs. 27. One or more computer-readable media having computer-executable instructions that, when executed on a processor, direct a computer to perform the method as recited in claim 23. 28. A method comprising: receiving non-native words of a non-native language and at least one native word of a native language that are entered by a user, the native word being entered as phonetic text; and presenting a list of one or more translations of the native word written in a language text. 29. A method as recited in claim 28, wherein the non-native language is English and the native language is Chinese. 30. A method as recited in claim 28, further comprising displaying the non-native words and the native word within a common entry line. 31. A method as recited in claim 28, further comprising presenting a sentence window with bilingual sentence pairs. 32. One or more computer-readable media having computer-executable instructions that, when executed on a processor, direct a computer to perform the method as recited in claim 28. 33. A method comprising: receiving non-native words of a non-native language and at least one native word of a native language, the native word being received in a first form of the native language; translating the native word from its first form to at least one native word of a second form, translating the native word of the second form to at least one non-native word. 34. A method as recited m claim 33, wherein the non-native language is English and the native language is Chinese. 35. A method as recited m claim 33, wherein the non-native words are English words and the first form of the native word is Chinese Pmym and the second form of the native word is Chinese Mandarin. 36. A method as recited in claim 33, wherein the translating the native word from its first form comprises selecting a most likely native word of the second form based on statistical probabilities. 37. A method as recited in claim 33, further comprising accepting misspelled versions of the native word in the first form. 38. A method as recited in claim 33, further comprising displaying the non-native words and the native word within a common entry line. 39. A method as recited in claim 33, wherein the translating the native word from its second form to the non-native word comprises: determining possible non-native word candidates from the second form of the native word; generating first probabilities associated with the non-native word candidates that indicate how likely individual non-native word candidates were intended by the user given the context established by previously entered non-native words; generating second probabilities associated with the non-native word candidates that indicate how likely the second form of the native word was intended given individual non-native word candidates; and deriving a most probable non-native word from among the non-native word candidates based on the first and second probabilities. 40. A method as recited in claim 33, further comprising replacing the native word in its first form with the non-native word. 41. One or more computer-readable media having computer-executable instructions that, when executed on a processor, direct a computer to perform the method as recited in claim 33. 42. A method comprising: enabling a user to enter non-native words of a non-native language and a phonetic text string of a native language; displaying the non-native words and the phonetic text string within a common entry line; translating the phonetic text string to at least one native word of the native language; determining possible non-native word candidates from the native word of the native language; generating first probabilities associated with the non-native word candidates that indicate how likely individual non-native word candidates were intended by the user given the context established by previously entered non-native words; generating second probabilities associated with the non-native word candidates that indicate how likely the native word was intended given individual non-native word candidates; deriving a most probable non-native word from among the non-native word candidates based on the first and second probabilities; and translating the native word to the most probable non-native word. 43. A method as recited in claim 42, wherein the non-native language is English and the native language is Chinese. 44. A method as recited in claim 42, wherein the non-native words are English words, the phonetic text is Chinese Pinyin, and the native word is Chinese Hanzi. 45. A method as recited in claim 42, wherein the translating the phonetic string comprises selecting most likely native words based on statistical probabilities. 46. A method as recited in claim 42, wherein the determining comprises using a bilingual dictionary to identify the non-native word candidates. 47. A method as recited in claim 42, wherein the generating first probabilities comprises using a statistical language model. 48. A method as recited in claim 42, wherein the generating second probabilities comprises using a translation model. 49. A method as recited in claim 42, further comprising displaying the most probable non-native word in place of the phonetic text string. 50. One or more computer-readable media having computer-executable instructions that, when executed on a processor, direct a computer to perform the method as recited in claim 42. 51. A cross-language input user interface comprising: a line-based entry area; non-native text displayed within the line-based entry area; and native text displayed together with the non-native text within the line-based entry area. 52. A cross-language input user interface as recited in claim 51 , wherein the non-native text comprises English and the native text comprises Chinese. 53. A cross-language input user interface as recited m claim 51, wherein the lme-based entry area is oriented horizontally 54. A cross-language input user interface as recited in claim 51, further comprising converted non-native text, converted from the native text, substituted for the native text withm the line-based entry area. 55. A cross-language input user interface as recited in claim 51, further comprising a candidate list of non-native words that are possible translations of the native text 56. A cross-language input user interface as recited in claim 51, further comprising a candidate list of non-native words that are possible translations of the native text, the non-native words being ordered withm the candidate list according to a ranking. 57. A cross-language input user interface as recited in claim 51 , wherein the lme-based entry area is oriented m a first direction and further comprising a candidate list of non-native words that are possible translations of the native text, the candidate list being oriented in a second direction orthogonal to the first direction. 58. A cross-language input user interface as recited in claim 51, further comprising a sentence window, mvokable by a user, to present bilingual sentences that include the native text and the non-native text. 59. A word processor comprising the language input user interface as recited in claim 51. 60. A cross-language input user interface comprising: an entry area that accepts first words written in a first language and at least one second word written in a second language; and a candidate list of first words that are possible translations from the second word. 61. A cross-language input user interface as recited in claim 60, wherein the first language is English and the second language is Chinese. 62. A cross-language input user interface as recited in claim 60, wherein the entry area comprises a line-based entry area oriented in a first direction and the candidate list is presented adjacent the line-based entry area and oriented in a second direction orthogonal to the first direction. 63. A cross-language input user interface as recited in claim 60, further comprising a sentence window, invokable by a user, to present bilingual sentences written in the first and second languages. 64. A word processor comprising the language input user interface as recited in claim 60. 65. A cross-language input user interface comprising: an entry area that allows a user to enter both English words and Chinese Pinyin; and a pop-up box with at least one Chinese word translated from the Chinese Pinyin. 66. A cross-language input user interface as recited in claim 65, further comprising, upon selection of a Chinese word from the pop-up box, a candidate list of English words that are possible translations from the Chinese word. 67. A cross-language input user interface as recited in claim 66, further comprising a sentence window, invokable by a user from the candidate list, to present bilingual sentences written in English and Chinese to demonstrate usage of a particular English word from the candidate list. 68. A word processor comprising the language input user interface as recited in claim 65. 69. A cross-language writing architecture comprising: a user interface to enable a user, who is accustomed to a native language, to enter non-native words from a non-native language; and a spelling tool to assist the user with correct entry of the non-native words. 70. A cross-language writing architecture as recited in claim 69, wherein the user interface allows the user to enter a native word from the native language instead of the non-native word, the spelling tool comprising a translator to translate the native word to a corresponding non-native word. 71. A cross-language writing architecture as recited in claim 70, wherein the translator utilizes a bilingual dictionary. 72. A cross-language writing architecture as recited in claim 70, wherein the translator utilizes a statistical language model. 73. A cross-language writing architecture as recited in claim 70, wherein the translator utilizes a bilingual translation model. 74. A cross-language writing architecture as recited in claim 69, wherein the spelling tool utilizes a thesaurus. 75. A word processor comprising the language input architecture as recited in claim 69. 76. A cross-language writing architecture comprising: a user interface to enable a user, who is accustomed to a native language, to enter non-native words from a non-native language; and a sentence recommendation tool to suggest possible sentence structures in the non-native language. 77. A cross-language writing architecture as recited m claim 76, wherein the sentence recommendation tool comprises a bilingual corpus containing bilingual sentence pairs written in both the native language and the non-native language, and a sentence retrieval unit to retrieve bilingual sentence pairs from the bilingual corpus 78. A cross-language writing architecture as recited in claim 77, wherein the sentence recommendation tool ranks the sentences retrieved from the bilingual corpus 79. A word processor comprising the language input architecture as recited m claim 76 80. A cross-language writing architecture comprising a user interface to enable entry of English words together with Chinese Pmym, a spelling tool to translate the Chinese Pmym to one or more Chinese words, the spelling tool being further configured to translate the Chinese words to one or more English words that may be substituted for the Chinese Pmyin, and a sentence recommendation tool, invokable by a user, to offer pairs of corresponding sentences written m English and Chinese to demonstrate how an English word is used in a sentence 81. A cross-language writing architecture as recited in claim 80, wherein the spelling tool comprises: a Chinese-English dictionary to determine possible English word candidates from the Chinese words; an English language model to determine how likely the user intended the English word candidates given previously entered English words; and an English-Chinese translation model to determine how likely individual Chinese words were intended given the English word candidates. 82. A cross-language writing architecture as recited in claim 80, wherein the sentence recommendation tool comprises: a bilingual corpus containing bilingual sentence pairs written in both English and Chinese; and a sentence retrieval unit to retrieve bilingual sentence pairs from the bilingual corpus . 83. A word processor comprising the language input architecture as recited in claim 80. 84. One or more computer-readable media having computer-executable instructions that, when executed on a processor, direct a computer to: enable entry of English words and Chinese Pinyin; translate the Chinese Pinyin to at least one Chinese word; determine possible English word candidates from the Chinese word; generate first probabilities associated with the English word candidates that indicate how likely each of the English word candidates was intended given previously entered English words; generate second probabilities associated with the English word candidates that indicate how likely the Chinese word was intended given each of the English word candidates; derive a most probable English word from among the English word candidates based on the first and second probabilities; and translate the Chinese word to the most probable English word.

Inventors: LIU TING, WANG JIAN, ZHOU MING, LIU, TING, WANG, JIAN, ZHOU, MING
Applicants: MICROSOFT CORP, MICROSOFT CORPORATION
Application year: 2001
Main classification: G06F17
IPC codes: G06F17