php


Need abbreviation translation database


Is there such a thing?
I'm looking to translate something like "mfg"=>"manufacturing" or . I figure that I'd need a database of mappings. However, I can't seem to find one. I'm don't know a lot about lexical translations and the budget doesn't call for a lot of research, so are there any quick 'n dirty tools out there?
Here's a start:
http://www.aresearchguide.com/comabb.html
but you'll have to do some editing
I've never seen a ready-made sql dump of abbreviations. Youll have to build one yourself. It shouldnt take too long to take a screen scraping and turn it into whatever format you need.
I took the list from cookre and modified it. It's a start and it's mostly for my use, but it might help someone else:
<?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";
?>
It the small domain a pair list of abbreviations and their expansions can be sufficient.
However, if you need a more complete solution you would to consider the following challenges:
Domain may grow and you may need to maintain your dictionary of abbreviations/expansions
Ambiguous abbreviations that have more than one expansion depending on the context and it can be non-trivial to automatically select the right one.
Ad hoc abbreviations, for instance programmers tends to abbreviate words that would not be shortened in a normal context
For the problem of growing domain you may want to use any of the online abbreviation dictionaries:
http://www.abbreviations.com/
http://ciir.cs.umass.edu/irdemo/acronym/index.html
http://acronyms.silmaril.ie/cgi-bin/uncgi/acronyms
http://www.all-acronyms.com/
http://www.acronymfinder.com/
http://www.acronymfinder.com/
For the problem of ambiguous abbreviations you may need to use additional information to select expansion. For instance, mentioned Abbreviations.com online dictionary provides information about expansion domain and "popularity". I used they programmable API in combination with domain-recognition algorithms to automate expansion process.
Expansions of ad hoc abbreviations usually can be found in the neighborhood of abbreviation occurence and can be matched with simple regular expressions.
Disclaimer: I worked on the problem of finding the right expansion for an abbreviation when trying to integrate two databases or XML files.

Related Links

How to orientate an uploaded image from a mobile camera?
PHP + MySQL login system with user types
How to programmatically set the A Address of a domain name?
Redirect Rule for hostname in htaccess
Why can't I retrieve a number of friends if my app has been granted a user_friends permission by default on Facebook?
Send attachment to email using wp_mail
php_memcached compiling in windows
DOMPDF not working, giving error
Magento: Accessing catalog and cart rule data
Open a new activity after successful login android studio app
Unable to load the requested file: loadcountrystate.php in CodeIgniter
CodeIgniter, pass data from model to controller to display sql operations results in controller
How to provide external account parameter while creating managed account in stripe using php?
how to make a page active for dynamic in codeigniter
Not getting email on second request email verification
Shared hosting, add library path (similar to ZEND)

Categories

HOME
cocoapods
entity-framework
protocol-buffers
d3.js
applescript
writefile
command-prompt
website
material-components
openfoam
phpseclib
timber
selection
reportviewer
swarm
colors
multi-step
live-streaming
outlook-restapi
varnish-vcl
cmake-gui
jitsi
opentext
managed-c++
running-object-table
tf-idf
macromedia
pyspark-sql
bobo-browse.net
sfml
location-services
progid
char-pointer
xerces-c
keyboard-layout
bluemixtools
stackpanel
love2d
text-decorations
export-to-pdf
netapp
docker-ucp
hibernate-ogm
maven-jaxb2-plugin
email-forwarding
ltrace
fuzzer
unsigned
openmrs
linuxbrew
mixins
sqlbase
netdatacontractserializer
wso2ml
replicaset
swagger-maven-plugin
relational-model
rfc5545
mojo
cakephp-2.2
device-admin
oracle-adf-mobile
maven-central
jini
neo4jphp
zend-search-lucene
radius-protocol
oxygene
mft
yii-booster
unrealscript
django-facebook
statechart
simplecov
lynx
workflow-manager-1.x
jdom
mkannotation
type-safety
sigar
litespeed
servlet-container
channelfactory
chunking
google-translator-toolkit
firephp
source-code-protection
jquery-effects
rendering-engine
jvm-bytecode

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App