2009-05-26 45 views
1

有沒有這樣的事情?需要縮寫翻譯數據庫

我正在尋找翻譯像「mfg」=>「製造」或。我想我需要一個映射數據庫。但是,我似乎無法找到一個。我對詞彙翻譯不太瞭解,預算也不需要大量的研究,所以有沒有快速的'骯髒的工具?

+1

http://en.wikipedia.org/wiki/List_of_abbreviations http://en.wikipedia.org/wiki/List_of_acronyms_and_initialisms – 2009-05-26 20:42:30

回答

0

我從cookre上找到了這個清單並對其進行了修改。這是一個開始,它的多爲我所用,但它可能會幫助別人:

<?php 
$abb = array(); 

$abb['abbr'] = "abbreviation"; 
$abb['abr'] = "abridged"; 
$abb['acad'] = "academy"; 
$abb['adj'] = "adjective"; 
$abb['adm'] = "administration"; 
$abb['agr'] = "agricultural"; 
$abb['agri'] = "agricultural"; 
$abb['agric'] = "agricultural"; 
$abb['anon'] = "anonymous"; 
$abb['app'] = "appended"; 
$abb['approx'] = "approximately"; 
$abb['assn'] = "association"; 
$abb['bact'] = "bacteria"; 
$abb['bib'] = "Bible"; 
$abb['bibliog'] = "bibliography"; 
$abb['biog'] = "biographer"; 
$abb['biol'] = "biology"; 
$abb['bk'] = "bank"; 
$abb['bkg'] = "banking"; 
$abb['bldg'] = "building"; 
$abb['blvd'] = "boulevard"; 
$abb['bot'] = "botanical"; 
$abb['bp'] = "bishop"; 
$abb['brig'] = "brigade"; 
$abb['bur'] = "bureaus"; 
$abb['ca'] = "chartered accountant"; 
$abb['cal'] = "calendar"; 
$abb['cap'] = "capital"; 
$abb['capt'] = "captain"; 
$abb['cath'] = "capital"; 
$abb['cent'] = "central"; 
$abb['ch'] = "church"; 
$abb['chem'] = "chemist"; 
$abb['chm'] = "chairman"; 
$abb['chron'] = "chronology"; 
$abb['cit'] = "citizen"; 
$abb['civ'] = "civil"; 
$abb['clk'] = "clerk"; 
$abb['co'] = "biographer"; 
$abb['col'] = "collected"; 
$abb['com'] = "committee"; 
$abb['comdr'] = "commander"; 
$abb['cond'] = "conductor"; 
$abb['conf'] = "conference"; 
$abb['cong'] = "congress"; 
$abb['consol'] = "consolidated"; 
$abb['constr'] = "construction"; 
$abb['cont'] = "continued"; 
$abb['corp'] = "corporation"; 
$abb['cp'] = "compare"; 
$abb['cr'] = "credit"; 
$abb['ct'] = "court"; 
$abb['dep'] = "department"; 
$abb['der'] = "derivative"; 
$abb['diag'] = "diagram"; 
$abb['dial'] = "dialect"; 
$abb['dict'] = "dictionary"; 
$abb['dipl'] = "diplomatic"; 
$abb['dir'] = "director"; 
$abb['disc'] = "discount"; 
$abb['dist'] = "district"; 
$abb['distr'] = "distribution"; 
$abb['div'] = "division"; 
$abb['doc'] = "document"; 
$abb['dpt'] = "department"; 
$abb['dr'] = "doctor"; 
$abb['dup'] = "duplicate"; 
$abb['ea'] = "each"; 
$abb['ecol'] = "ecology"; 
$abb['econ'] = "economic"; 
$abb['ed'] = "editor"; 
$abb['elec'] = "electrician"; 
$abb['elect'] = "electrical"; 
$abb['eng'] = "engineer"; 
$abb['ency'] = "encyclopedia"; 
$abb['encyc'] = "encyclopedia"; 
$abb['encycl'] = "encyclopedia"; 
$abb['est'] = "estimate"; 
$abb['entom'] = "entomologist"; 
$abb['exch'] = "exchange"; 
$abb['exec'] = "executive"; 
$abb['fac'] = "facsimile"; 
$abb['fax'] = "facsimile"; 
$abb['fed'] = "federal"; 
$abb['ff'] = "following"; 
$abb['fin'] = "finance"; 
$abb['fl'] = "fluid"; 
$abb['ft'] = "foot"; 
$abb['fwd'] = "foreword"; 
$abb['gal'] = "gallon"; 
$abb['gall'] = "gallon"; 
$abb['gaz'] = "gazette"; 
$abb['geog'] = "geographer"; 
$abb['geol'] = "geologic"; 
$abb['geom'] = "geometry"; 
$abb['gloss'] = "glossary"; 
$abb['gov'] = "governor"; 
$abb['govt'] = "government"; 
$abb['gram'] = "grammar"; 
$abb['hist'] = "history"; 
$abb['her'] = "heraldry"; 
$abb['hort'] = "horticulture"; 
$abb['hr'] = "hour"; 
$abb['ht'] = "height"; 
$abb['illus'] = "illustrator"; 
$abb['in'] = "inch"; 
$abb['inc'] = "incorporated"; 
$abb['ins'] = "insurance"; 
$abb['inst'] = "institution"; 
$abb['intl'] = "international"; 
$abb['international'] = "introduction"; 
$abb['is'] = "island"; 
$abb['jour'] = "journal"; 
$abb['jr'] = "junior"; 
$abb['jud'] = "judicial"; 
$abb['lab'] = "laboratory"; 
$abb['lang'] = "language"; 
$abb['lat'] = "latitude"; 
$abb['lib'] = "library"; 
$abb['lieut'] = "lieutenant"; 
$abb['lt'] = "lieutenant"; 
$abb['lit'] = "literature"; 
$abb['ltd'] = "limited"; 
$abb['mach'] = "machinist"; 
$abb['mag'] = "magazine"; 
$abb['maj'] = "major"; 
$abb['math'] = "mathematics"; 
$abb['mech'] = "mechanics"; 
$abb['med'] = "medical"; 
$abb['mfg'] = "manufacturing"; 
$abb['mfr'] = "manufacturer"; 
$abb['mgr'] = "manager"; 
$abb['misc'] = "miscellaneous"; 
$abb['mo'] = "month"; 
$abb['mod'] = "modern"; 
$abb['ms'] = "manuscript"; 
$abb['mt'] = "mountain"; 
$abb['mus'] = "museum"; 
$abb['narr'] = "narrator"; 
$abb['natl'] = "national"; 
$abb['nav'] = "naval"; 
$abb['neg'] = "negative"; 
$abb['no'] = "number"; 
$abb['obit'] = "obituary"; 
$abb['obj'] = "object"; 
$abb['orch'] = "orchestra"; 
$abb['orig'] = "original"; 
$abb['p'] = "page"; 
$abb['par'] = "paragraph"; 
$abb['pat'] = "patent"; 
$abb['pct'] = "percent"; 
$abb['perf'] = "performer"; 
$abb['philos'] = "philosopher"; 
$abb['phys'] = "physician"; 
$abb['prod'] = "production"; 
$abb['prin'] = "principal"; 
$abb['psych'] = "psychologist"; 
$abb['pt'] = "port"; 
$abb['pub'] = "publisher"; 
$abb['qr'] = "quarter"; 
$abb['ques'] = "question"; 
$abb['quot'] = "quotation"; 
$abb['rec'] = "receipt"; 
$abb['ref'] = "referee"; 
$abb['reg'] = "region"; 
$abb['rev'] = "review"; 
$abb['rel'] = "release"; 
$abb['rpt'] = "reprint"; 
$abb['s'] = "south"; 
$abb['sc'] = "scene"; 
$abb['sch'] = "school"; 
$abb['sci'] = "scientist"; 
$abb['sculp'] = "sculptor"; 
$abb['sec'] = "secretary"; 
$abb['secy'] = "secretary"; 
$abb['sect'] = "section"; 
$abb['ser'] = "series"; 
$abb['serg'] = "sergeant"; 
$abb['sergt'] = "sergeant"; 
$abb['sing'] = "singular"; 
$abb['sol'] = "solicitor"; 
$abb['sp'] = "secretary"; 
$abb['sub'] = "suburb"; 
$abb['subj'] = "subject"; 
$abb['sup'] = "supply"; 
$abb['supt'] = "superintendent"; 
$abb['surg'] = "surgeon"; 
$abb['sym'] = "symbol"; 
$abb['t'] = "town"; 
$abb['tel'] = "telephone"; 
$abb['temp'] = "temperature"; 
$abb['terr'] = "territory"; 
$abb['theol'] = "theology"; 
$abb['topog'] = "topographical"; 
$abb['trans'] = "translator"; 
$abb['tr'] = "translator"; 
$abb['treas'] = "treasurer"; 
$abb['treas'] = "treasury"; 
$abb['twp'] = "township"; 
$abb['ult'] = "ultimate"; 
$abb['univ'] = "university"; 
$abb['usu'] = "usually"; 
$abb['var'] = "variant"; 
$abb['vet'] = "veteran"; 
$abb['vol'] = "volume"; 
$abb['vp'] = "vice president"; 
$abb['writ'] = "writer"; 
$abb['wt'] = "weight"; 
$abb['yd'] = "yard"; 
$abb['yr'] = "year"; 

?> 
0

我從來沒有見過的縮寫的現成的SQL轉儲。你必須自己創建一個。它不應該花費太長時間來抓取屏幕並將其轉換爲您需要的任何格式。

0

它的小域的縮寫和他們展開的對列表就足夠了。

但是,如果你需要一個更完整的解決方案,你會考慮以下挑戰:

  • 域名可能會增長,您可能需要保持你的縮略語詞典/擴展
  • 曖昧的縮寫根據上下文具有多個擴展,並且自動選擇正確的擴展可能不平凡。
  • 特設縮寫,例如程序員往往縮寫,不會在一個正常的範圍內

能夠縮短你可能要使用的任何在線縮寫詞典的成長領域的問題的話:

對於您可能需要使用額外的信息來選擇擴展曖昧縮寫的問題。例如,Abbreviations.com在線詞典中提到了有關擴展域和「流行度」的信息。我將它們與域識別算法結合使用來自動執行擴展過程。

臨時縮寫的擴展通常可以在縮寫發生的鄰域中找到,並且可以與簡單的正則表達式匹配。

免責聲明:我在試圖集成兩個數據庫或XML文件時尋找縮寫的正確擴展的問題。