九、發明說明: 【發明所屬之技術領域】 本發明係關於一種名稱拼字之比對方法及系統,尤指 種適用於不正確的时或城市名稱拼字之比對方法及系 【先前技術】 隨著科技技術的進步,學習英文的管道、途徑、和工 二不再,、限於使用英文字典,還可透過網路線上查詢及 面上販售的各種不同款式的電子辭典,而這些電子辭典 4且易於攜帶,給學習英文的人帶來許多便利。 此外’絕大多數的電子辭典或網路線上查詢都採用下 ^功能表的查詢方式來建議更多可能相關的英文單字, 擇,但是對於—些㈣電子辭典功能之小型 下拉式功能表並不能完全提供所有可能相 正减=早子於同—畫面上’而且如果使用者輸入完全不 文單字央2字,則查詢系統無法提供任何可能相關的英 確的L::—需要花費更多的查詢時間來尋找正 【發明内容;] 本發明係為-種不正確 方法及系統域市名㈣字之比對 進行國家》查詢終端向—遠端伺服器 4市名稱拼字之比對,遠端伽器具有-資料 1321739 庫,資料庫内預存有一對照表及一問題表,該對照表包括 -- 有複數個正確的國家或城市名稱拼字、及複數個相對應之 • 不正確的國家或城市名稱拼字’該問題表包括有複數個符 合相似於正確的國家或城市名稱拼字之對應問題、及複數 5個關於所在地域之問題,其中,前述之方法包括下列步驟: (A)於查詢終端輸入一查詢請求,該查詢請求包括一國家或 城市名稱拼字;(B)遠端伺服器依據查詢請求與預存於資料 4之對照表中的正確的國家或城市名稱拼字比對,且當比 攀冑結果沒有找到符合預存於資料庫之正確的國家或城市名 10稱拼字時,it -步依據查詢請求與預存於資料庫之該等相 對應之不正確的國家或城市名稱拼字比對;(c)如果比對结 f沒有找到符合預存於資料庫之該等相對應之不正確的國 家或城市名稱拼字’但有相似於該等正確的國家或城市名 稱拼字,則遠端飼服器找出所有相似於該等正確的國家或 15城市名稱拼字,並分別對所有相似於該等正相國家或城 T名稱拼字提出該等符合相似於正確的时或城市名稱拼 •=之對應問題’以根據對應於問題之回應而找出正確的國 家或城市名稱,並將該輸入的國家或城市名稱拼字儲存於 資料庫内;以及(D)如果比對結果沒有找到符合預存於資料 20庫之該等相對應之不正確的國家或城市名稱拼字,且無相 似於該等正確的國家或城市名稱拼字,則遠端饲服器提出 關於所在地域之問題,以根據對應於問題之回應而找出正 確的國家或城市名稱,並將該輸入的國家或城市名稱拼字 儲存於該資料庫内。 6 1321739 因此,上述之不正確的國家或域市名稱拼字之比對方 法及系統係提供使用者快速的及方便的查詢名稱拼字且 上述之國家或城市名稱係為以字母拼成文字之名稱,如: =文莖德文、希臘文、俄文、日本平假名、日本片假名、 或夬文等。 上述之查詢終端可為—手機…掌上型電腦、— 航空公司電腦定位系統、或旅館、火車、巴士 輸查詢纟崎。 【實施方式】 15 20 請同時參照圖1係本發明—較佳實施例之系統架構 圊、及圖2係本發明—較佳實施例之流程圖。本實施例係供 2用者於-查詢終端u輸入所要查詢之國家或城市名稱 子,以產生-包含輸入的國家或城市名稱拼字之查詢 ^步驟咖),並將該查詢請求以—有線連接、—無線連 t或一網路連接之傳送機制12傳送至一遠端伺服器加 或城市名稱拼字之比對。在本實施例中,查詢終 1:為一手機、一掌上型電腦、或一電腦,而所要查詢 ^豕或城市名稱拼字係由個英文字母所組成之英文 ',且該等城市係為具有機場之城市。 々古上越之遠端伺服器13具有一資料庫14,資料庫14内預 ^ —對照表141及一問題表142,對照表ΐ4ι包括有複數個 的國家或城市名稱拼字、及複數個相對應之不正確的 豕或城市名稱拼字,問題表⑷包括有複數個符合相似於 7 國家或城市名稱拼字之對應問題、及複數個關於所 …域之問題,如圖3a及圖3b所示。遠端伺服器13依據查 询睛求與預存於資料庫14之對照表141中的正確的國家或 j市名%拼字比對(步驟S202)。當比對結果找到符合預存於 二^庫4之正確的國豕或城市名稱拼字時,則遠端伺服器 13找出國家或城市名稱(步驟S2G3);反之,當比對結果沒有 找到$合預存於資料庫14之正確的國家或城市名稱拼字 時’遠端健器13更進一步依據查詢請求與預存於資料庫 14之該等相對應之不正確的國家或城市名稱拼字比對(步 驟S204)’而資料庫14係預存數百個至數千個不正確的國家 或城市名稱。 然而’因為所有的國家或城市名稱皆差異甚大,是故 右將資料庫14之對照表141的比對範圍指定為用以比對國 豕或城市名稱時,即使使用者於查詢終端丨丨所輸入之不正 確國家或城市名稱拼字與該國家或城市之正確拼字相去甚 遠,遠端伺服器13亦可比對出該國家或城市之正確拼字。 如果比對結果找到符合預存於資料庫丨4之該等相對應 之不正確的國家或城市名稱拼字,則遠端伺服器13找出正 確的國家或城市名稱(步驟S205);反之,如果比對結果沒有 找到符合預存於資料庫14之該等相對應之不正確的國家或 城市名稱拼字,但有相似於該等正確的國家或城市名稱拼 字’則遠端伺服器13找出所有相似於該等正確的國家或城 市名稱拼字’並分別對所有相似於該等正確的國家或城市 名稱拼字提出該等符合相似於正確的國家或城市名稱拼字 1321739 之=應問題以找出正確的國家或城市名稱,並將該輸入的 國家或城市名稱拼字儲存於資料庫14内(步驟S2〇6)。 此外,如果比對結果沒有找到符合預存於資料庫14之 該等相對應之不正綠的國家或城市名稱拼字,且無相似於 5 4等正確的國豕或城市名稱拼字,則遠端伺服器η提出該 等關於所在地域之問題以找出正確的國家或城市名稱,並 將該輸入的國家或城市名稱拼字儲存於資料庫以内(步驟 S207)。 下面將針對上述的描述依序特舉範例以作更詳細的解 10 說: 範例一:使用者於查詢終端n輸入“singapore,,,以產 生一包含輸入的國家名稱拼字之查詢請求(步驟S201),且查 詢終端11將此查詢請求透過傳送機制12而傳送至遠端舰 器13以進行國家或城市名稱拼字之比對,遠端飼服器13依 15據查詢請求“SingaP〇re”與預存於資料庫14之對照表141中 的正確的國家或城市名稱拼字比對(步驟S2〇2),如圖以所 不,而比對結果找到符合預存於資料庫14之正確的國家或 城市名稱拼字,遠端飼服器13找出國家或城市名稱(步驟 S203)。 2〇 範例二:使用者於查詢終端u輸入“T〇yk〇,,,以產生一 包含輸入的城市名稱拼字之查詢請求(步驟S2〇i),且查詢終 端11將此查詢請求透過傳送機制12而傳送至遠端伺服器U 以進行國家或城市名稱拼字之比對,遠端飼服器13依據查 詢請求“Toyko”與預存於資料庫14之對照表141中的正確的 9 1321739 时或城市名稱耕字比對(步驟伽2),如圖h所示,而比對 =果^朗符合預存於請庫14之正麵國家或城市名 稱拼予更進步依據查詢請求與預存於資料庫μ之該等 相對應之不正確的國家或城市名稱拼字比對(步驟s2〇句,結 5果找到符合預存於資料庫丨4之“Toyko”之不正確的城市名 稱拼字,則遠端伺服器13找出對應“T〇yk〇”之正確的城市名 稱 “Tokyo”(步驟 S205) 〇 範例三:使用者於查詢終端u輸入》Shanhai”,以產生 一包含輸入的城市名稱拼字之查詢請求(步驟S2〇i),且查詢 H)終端11將此查詢請求透過傳送機制12而傳送至遠端祠服器 13以進灯國家或城市名稱拼字之比對,遠端祠服器^依據 查詢請求“Shanhai”與預存於資料庫14之對照表141十的正 確的國家或城市名稱拼字比對(步驟S2〇2),如圖所示,而 比對結果沒有找到符合預存於資料庫14之正確的國家或城 15市名稱拼字,遠端伺服器U更進一步依據查詢請求與預存 於資料庫14之該等相對應之不正確的國家或城市名稱拼字 (如.Be1; Bejg; Sha; Saghai; Tok; Tkoo; Tipi; Tapei)比對(步 驟S204) ’比對結果沒有找到符合預存於資料庫14之該等相 對應之不正確的國家或城市名稱拼字,但有相似於該正確 20的城市名稱拼字“Shanghai,,,則遠端伺服器13找出相似於該 正確的國豕或城市名稱拼字“Shanghai,’,並依序對相似於該 正確的國家或城市名簡字S出該等符合相似於正確的國 家或城市名稱拼字之對應問題“是位亞洲大陸的東方嗎?及 是中國的經濟中心和貿易港口嗎?”,如圖3b所示。如果答 案皆為“是’,,則遠端伺服器13找出正確的城市名稱 Shanghai”,並將該輸入的國家或城市名稱拼字“shanhai ” 儲存於資料庫14内(;步驟S2〇6)。 範例四:使用者欲查詢“Taipei,,之城市名稱拼字,但使 用者不知該英文拼字,於是在查詢終端u輸入,以 產生一包含輸入的城市名稱拼字之查詢請求(步驟S2〇1),且 查詢終端11將此查詢請求透過傳送機制12而傳送至遠端伺 服13以進行國豕或城市名稱拼字之比對,遠端伺服器13 依據查δ句明求‘Chibey”與預存於資料庫丨4之對照表丨4丨中的 正確的國家或城市名稱拼字比對(步驟S2〇2),如圖3a所示, 而比對結果沒有找到符合預存於資料庫14之正確的國家或 城市f稱拼字,遠端词服器13更進-步依據查詢請求與預 ,於貧料庫14之該等相對應之不正確的國家或城市名稱拼 字(如·· Bei; Bejg; Sha; Saghai; T〇k; Tk〇〇; Tipi; Ta㈣比對 (步驟S204),比對結果沒有找到符合預存於資料庫“之該等 相對應之不正確的國家或城市名稱拼字,且無相似於該等 正碎的國家或城市名稱拼字(如:Beijing;―喻化Το— Osaka; Fukuoka; Taipei) ’則遠端飼服器13提出第一個關於 所在地域之問題“是位在亞洲嗎?”’ #使用者選擇“是,,之欠 案後’遠端舰器13提出第二個問題“是位亞洲大陸的東^ 嗎?”’如果使用者選擇“否,’之答案,則遠端伺服㈣提出第 二個問題“是位亞洲大陸的東北方嗎?”。如果使用者亦選擇 “否”之答案’則遠端词服器13提出第四個問題“是位亞洲大 陸的東南方’太平洋西岸東亞島弧間嗎?,,。這次使用者選 1J21739 擇疋之答案,則遠端伺服器13提出第五個問題“是台灣的 政經中心嗎?”。使用者這次還是選擇“是,,之答案,則遠端伺 服13找出正確的城市名稱“Taipei”,並將該輸入的城市名 稱拼子Chibey”健存於資料庫μ内(步驟S207)。 5 因此,由上述之說明可知,本發明不僅提供使用者快 速的查詢名稱拼字,而且對具有顯示幕之小型查詢終端更 有改善使用於下拉式功能表之不便的功效。尤其,當使用 者於查詢終端輸入不正確的英文拼字時,使用者不需再藉 由查詢系統所提供之下拉式功能表來選擇正確的英文^ 1〇字’而是透過遠端伺月艮器13將不正確的英文拼字與資料庫 14内之對照表141比對,如果比對結果還是不符合,再由資 料庫14之問題表142提出“是”或“否,,的對應_以供使用者 選擇,最後遠端伺服器13在依據使用者所選擇的答案找出 正確的國家或城市名稱。 15 上述實施例僅係為了方便說明而舉例而已,本發明所 主張之權利範圍自應以申請專利範圍所述為準,而非僅限 於上述貫施例。 【圖式簡單說明】 20 圖1係本發明一較佳實施例之系統架構圖。 圖2係本發明一較佳實施例之流程圖。 圖3a及圖3b係本發明之資料庫之示意圖。 【主要元件符號說明】 12 1321739 11 查詢終端 12 傳送機制 13 遠端伺服裝置 14 資料庫 141 對照表 142 問題表 13IX. Description of the invention: [Technical field to which the invention pertains] The present invention relates to a method and system for matching a name spelling, and more particularly to a method and system for matching incorrect numbers or spelling of city names. With the advancement of technology, the channels, ways, and work of learning English are no longer limited to English dictionaries. They can also be queried through the Internet and various electronic dictionaries sold on the surface. Dictionary 4 is easy to carry and brings a lot of convenience to those who learn English. In addition, the vast majority of electronic dictionaries or online online queries use the query method of the lower ^ function table to suggest more possible English words, but for the small (four) electronic dictionary function, the small pull-down menu cannot Fully provide all possible positive decrement = early on the same - on the screen 'and if the user enters a completely non-verbal word 2 words, the query system can not provide any possible relevant L:: - need to spend more Query time to find positive [invention content;] The present invention is an inaccurate method and system domain name (four) word ratio for the country" query terminal to - remote server 4 city name spelling comparison, far The terminal gamma has a data 1321739 library, and a database has a pre-stored checklist and a question table. The comparison table includes -- there are a plurality of correct country or city name spellings, and a plurality of corresponding ones. • Incorrect countries. Or city name spelling' The question table includes a number of questions corresponding to spelling similar to the correct country or city name, and a plurality of questions about the location, The foregoing method includes the following steps: (A) inputting a query request at the query terminal, the query request includes a country or city name spelling; (B) the remote server according to the query request and the pre-stored data table The correct country or city name is spelled and compared, and when the result of the climbing is not found in the correct country or city name pre-stored in the database, the it-step is based on the query request and pre-stored in the database. These corresponding incorrect country or city names are spelled and matched; (c) if the matching knot f does not find the correct name of the country or city that corresponds to the corresponding incorrect name stored in the database 'but there is Similar to the correct country or city name spelling, the remote feeding device finds all spellings similar to those in the correct country or 15 cities, and respectively for all similar to the normal country or city T The name spelling proposes that the corresponding problem is similar to the correct time or city name spelling == to find the correct country or city name based on the response corresponding to the question, and the input country or The city name spelling is stored in the database; and (D) if the comparison result does not find the correct country or city name spelling that corresponds to the corresponding data stored in the library 20, and is not similar to the correct one. If the country or city name is spelled, the remote feeder submits a question about the location to find the correct country or city name based on the response to the question, and the name of the country or city entered is spelled in Within the database. 6 1321739 Therefore, the above-mentioned incorrect country or domain name spelling comparison method and system provide users with quick and convenient query name spelling and the above-mentioned country or city name is spelled into letters. Names such as: = Wengen German, Greek, Russian, Japanese hiragana, Japanese katakana, or essay. The above-mentioned query terminal can be used to search for Nagasaki, such as a mobile phone, a palmtop computer, an airline computer positioning system, or a hotel, train or bus. [Embodiment] 15 20 Please refer to FIG. 1 as a system architecture of the preferred embodiment, and FIG. 2 is a flow chart of the preferred embodiment of the present invention. This embodiment is for the user to input the country or city name to be queried in the inquiry terminal u to generate - the query containing the input country or city name spelling ^ step coffee), and the query request is - wired A connection, a wireless connection or a network connection transmission mechanism 12 is transmitted to a remote server plus or city name spelling comparison. In this embodiment, the query end 1: is a mobile phone, a palm-sized computer, or a computer, and the query is to be queried or the name of the city is composed of English letters, and the cities are A city with an airport. The remote remote server 13 has a database 14 in which the database 14 is pre-compared with a table 141 and a question table 142. The reference table 4i includes a plurality of country or city names, and a plurality of phases. Corresponding to the incorrect 豕 or city name spelling, the question table (4) includes a number of corresponding questions that correspond to spellings similar to the name of 7 countries or cities, and a number of questions about the domain, as shown in Figures 3a and 3b. Show. The remote server 13 is spell-matched with the correct country or j-city name % stored in the look-up table 141 of the database 14 in accordance with the query (step S202). When the comparison result finds a spell that matches the correct country or city name pre-stored in the library 4, the remote server 13 finds the country or city name (step S2G3); otherwise, when the comparison result is not found $ When the correct country or city name pre-stored in the database 14 is spelled, the remote health device 13 further spells the incorrect country or city name corresponding to the data stored in the database 14 according to the query request. (Step S204) 'The database 14 prestores hundreds to thousands of incorrect country or city names. However, because all country or city names are very different, it is the right to specify the comparison range of the database 14 comparison table 141 to compare the country or city name, even if the user is in the inquiry terminal. Incorrectly entered country or city name spelling is far removed from the correct spelling of the country or city, and the remote server 13 can also compare the correct spelling of the country or city. If the comparison result finds a spelling of the incorrect country or city name corresponding to the corresponding pre-stored in the database 4, the remote server 13 finds the correct country or city name (step S205); The comparison results did not find the correct country or city name spelling that corresponds to the corresponding pre-stored in the database 14, but there is a spelling similar to the correct country or city name' then the remote server 13 finds All spelling similar to the correct country or city name 'and spelling all similar names to the correct country or city name spelling similar to the correct country or city name spelling 1321739 Find the correct country or city name and store the entered country or city name in the database 14 (step S2〇6). In addition, if the comparison result does not find the spelling of the country or city name that corresponds to the corresponding uncorrected green pre-stored in the database 14, and there is no similar national or city name spelling similar to 5 4, then the far end The server η proposes such questions about the location to find the correct country or city name and stores the entered country or city name in the database (step S207). In the following, the above description will be specifically described for a more detailed explanation. 10 Example 1: The user inputs “singapore,” in the query terminal n to generate a query request containing the input country name spelling (step S201), and the query terminal 11 transmits the query request to the remote ship 13 through the transmission mechanism 12 to perform a country or city name spelling comparison, and the remote feeder 13 requests the request according to the query "SingaP〇re "Spone-matching with the correct country or city name pre-stored in the comparison table 141 of the database 14 (step S2〇2), as shown in the figure, and the comparison result is found to be in accordance with the correct pre-stored in the database 14. The country or city name is spelled, and the remote feeder 13 finds the country or city name (step S203). 2 Example 2: The user inputs "T〇yk〇," in the query terminal u to generate an input containing The city name spelling query request (step S2〇i), and the query terminal 11 transmits the query request to the remote server U through the transmission mechanism 12 for the country or city name spelling comparison, the remote feeding service 13 according to the inquiry "Toyko" is compared with the correct 9 1321739 or city name in the comparison table 141 pre-stored in the database 14 (step gamma 2), as shown in Figure h, and the comparison = fruit lang is pre-existing in the request The positive country or city name of the library 14 is more progressively based on the query request and the incorrect country or city name pre-stored in the database corresponding to the incorrect country or city name (step s2 haiku, knot 5 find matching The incorrect city name spelling pre-stored in the "Toyko" of the database 丨4, the remote server 13 finds the correct city name "Tokyo" corresponding to "T〇yk〇" (step S205). Example 3: The user inputs "Shanhai" to the query terminal u to generate a query request containing the input city name spelling (step S2〇i), and the query H) the terminal 11 transmits the query request to the remote end through the delivery mechanism 12. The server 13 compares the spelling of the country or city name into the country, and the remote server ^ is based on the correct national or city name of the query request "Shanhai" and the comparison table 141 of the database 14 pre-stored. Right (step S2〇2), as shown, and The comparison result does not find the correct country or city 15 city name spelling that is pre-stored in the database 14, and the remote server U further in accordance with the query request and the corresponding country pre-stored in the database 14 or City name spelling (eg.Be1; Bejg; Sha; Saghai; Tok; Tkoo; Tipi; Tapei) comparison (step S204) 'The comparison result did not find the corresponding incorrectly corresponding to the database 14 The country or city name is spelled, but there is a similarity to the correct 20 city name spelling "Shanghai,,, then the remote server 13 finds similar to the correct country or city name spelling "Shanghai," and Sequentially, the corresponding question that is similar to the correct country or city name spelling is similar to the correct country or city name spelling. Is it the eastern part of the Asian continent? Is China's economic center and trading port? ", as shown in Figure 3b. If the answer is "yes", then the remote server 13 finds the correct city name Shanghai" and stores the input country or city name spelling "shanhai" in the database. 14 (Step S2〇6) Example 4: The user wants to query “Taipei, the city name spelling, but the user does not know the English spelling, so input in the query terminal u to generate a city containing input. The name spelling query request (step S2〇1), and the query terminal 11 transmits the query request to the remote server 13 through the transmission mechanism 12 for the comparison of the national or city name spelling, and the remote server 13 According to the δ sentence, the 'Chibey' is compared with the correct country or city name pre-stored in the database (4 (step S2〇2), as shown in Fig. 3a, and the comparison As a result, no correct country or city f-spelling that is pre-stored in the database 14 is found, and the remote word processor 13 further advances according to the query request and the pre-existing in the poor library 14 National or city name spelling (eg··· Bei; Bejg; Sha ; Saghai; T〇k; Tk〇〇; Tipi; Ta (four) comparison (step S204), the comparison results did not find the exact country or city name spelling that corresponds to the corresponding database pre-stored in the database, and no Similar to the name of the country or city where the smashing is spelled (eg: Beijing; “Yuhua Το— Osaka; Fukuoka; Taipei] 'The remote feeding device 13 proposes the first question about the location” Asia?"' #用户选择"Yes, after the case of the case, the remote ship 13 raised the second question "Is it the East of the Asian continent?" 'If the user chooses "No," the answer The remote servo (4) asks the second question, “is it the northeast of the Asian continent?” If the user chooses the “no” answer, the remote word processor 13 raises the fourth question “is an Asian In the southeast of the mainland, the Pacific Ocean between the East Coast of the Pacific Ocean?,. This time the user chooses the answer to 1J21739, the remote server 13 asks the fifth question, "Is it the political and economic center of Taiwan?" This time, I still choose "Yes, the answer, then the remote servo. 13 Find the correct city name "Taipei" and store the entered city name spelling "Chibey" in the database μ (step S207). 5 Therefore, from the above description, the present invention not only provides the user with a quick The query name is spelled, and the small query terminal with the display screen has the effect of improving the inconvenience of using the pull-down function table. In particular, when the user inputs an incorrect English spelling in the query terminal, the user does not need to The correct English word is selected by the pull-down function table provided by the query system, and the incorrect English spelling is compared with the comparison table 141 in the database 14 through the remote server 13 If the comparison result is still not met, then the question table 142 of the database 14 asks "yes" or "no," the corresponding_ for the user to select, and finally the remote server 13 is based on the answer selected by the user. Find the correct country or city name. The above-described embodiments are merely examples for the convenience of the description, and the scope of the claims is intended to be limited to the scope of the claims. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a system architecture diagram of a preferred embodiment of the present invention. 2 is a flow chart of a preferred embodiment of the present invention. 3a and 3b are schematic views of a database of the present invention. [Main component symbol description] 12 1321739 11 Query terminal 12 Transmission mechanism 13 Remote servo device 14 Database 141 Comparison table 142 Problem table 13