小程序JS-处理英语单词,获取英语意思,注意事项

小程序JS-处理英语单词,获取英语意思,注意事项,第1张

现有英语单词库不是很全,比如四级4500个,肯定不包括+s,+er这样的,比如reader等

下面这个函数就是处理英语单词

findphs(str)
  {
  let js={w:'',m:''}
  if(jsonData.data[str]!==undefined)
  {js.w=str; js.m=jsonData.data[str]; return js}
  // s es ies
  if(str.slice(-1)=="s"&&jsonData.data[str.slice(0,-1)]!==undefined)
  {js.w=str.slice(0,-1); js.m=jsonData.data[str.slice(0,-1)];return js}
  if(str.slice(-2)=="es"&&jsonData.data[str.slice(0,-2)]!==undefined)
  {js.w=str.slice(0,-2); js.m=jsonData.data[str.slice(0,-2)];return js}
  if(str.slice(-3)=="ies"&&jsonData.data[str.slice(0,-3)+'y']!==undefined)
  {js.w=str.slice(0,-3)+'y'; js.m=jsonData.data[str.slice(0,-3)+'y'];return js}
// d ed xxed
  if(str.slice(-1)=="d"&&jsonData.data[str.slice(0,-1)]!==undefined)
  {js.w=str.slice(0,-1); js.m=jsonData.data[str.slice(0,-1)];return js}
  if(str.slice(-2)=="ed"&&jsonData.data[str.slice(0,-2)]!==undefined)
  {js.w=str.slice(0,-2); js.m=jsonData.data[str.slice(0,-2)];return js}
  if(str.slice(-2)=="ed"&&jsonData.data[str.slice(0,-3)]!==undefined)
  {js.w=str.slice(0,-3); js.m=jsonData.data[str.slice(0,-3)];return js} //stopped
  if(str.slice(-3)=="ied"&&jsonData.data[str.slice(0,-3)+'y']!==undefined)
  {js.w=str.slice(0,-3)+'y'; js.m=jsonData.data[str.slice(0,-3)+'y'];return js}
  // ing
  if(str.slice(-3)=="ing"&&jsonData.data[str.slice(0,-3)]!==undefined)
  {js.w=str.slice(0,-3); js.m=jsonData.data[str.slice(0,-3)];return js}
  if(str.slice(-3)=="ing"&&jsonData.data[str.slice(0,-3)+'e']!==undefined)
  {js.w=str.slice(0,-3)+'e'; js.m=jsonData.data[str.slice(0,-3)+'e'];return js}//move,moving
  if(str.slice(-3)=="ing"&&jsonData.data[str.slice(0,-4)]!==undefined)
  {js.w=str.slice(0,-4); js.m=jsonData.data[str.slice(0,-4)];return js}//swimming
  // +er +est
  if(str.slice(-2)=="er"&&jsonData.data[str.slice(0,-2)]!==undefined)
  {js.w=str.slice(0,-2); js.m=jsonData.data[str.slice(0,-2)];return js}
  if(str.slice(-3)=="ier"&&jsonData.data[str.slice(0,-3)+'y']!==undefined)
  {js.w=str.slice(0,-3)+'y'; js.m=jsonData.data[str.slice(0,-3)+'y'];return js}//easier
  if(str.slice(-2)=="er"&&jsonData.data[str.slice(0,-3)]!==undefined)
  {js.w=str.slice(0,-3); js.m=jsonData.data[str.slice(0,-3)];return js}//bigger
  if(str.slice(-2)=="er"&&jsonData.data[str.slice(0,-1)]!==undefined)
  {js.w=str.slice(0,-1); js.m=jsonData.data[str.slice(0,-1)];return js}// nicer
  if(str.slice(-3)=="est"&&jsonData.data[str.slice(0,-3)]!==undefined)
  {js.w=str.slice(0,-3); js.m=jsonData.data[str.slice(0,-3)];return js}//tallest
  if(str.slice(-4)=="iest"&&jsonData.data[str.slice(0,-4)+'y']!==undefined)
  {js.w=str.slice(0,-4)+'y'; js.m=jsonData.data[str.slice(0,-4)+'y'];return js}//easiest
  if(str.slice(-3)=="est"&&jsonData.data[str.slice(0,-4)]!==undefined)
  {js.w=str.slice(0,-4); js.m=jsonData.data[str.slice(0,-4)];return js}//biggest
  if(str.slice(-3)=="est"&&jsonData.data[str.slice(0,-2)]!==undefined)
  {js.w=str.slice(0,-2); js.m=jsonData.data[str.slice(0,-2)];return js}//nicest
  //形容词变副词
  if(str.slice(-2)=="ly"&&jsonData.data[str.slice(0,-2)]!==undefined)
  {js.w=str.slice(0,-2); js.m=jsonData.data[str.slice(0,-2)];return js}// slowly
  if(str.slice(-2)=="ly"&&jsonData.data[str.slice(0,-2)+'e']!==undefined)
  {js.w=str.slice(0,-2)+'e'; js.m=jsonData.data[str.slice(0,-2)+'e'];return js}// true truly
  if(str.slice(-2)=="ly"&&jsonData.data[str.slice(0,-2)+'le']!==undefined)
  {js.w=str.slice(0,-2)+'le'; js.m=jsonData.data[str.slice(0,-2)+'le'];return js}// true truly// able ably
  if(str.slice(-3)=="ily"&&jsonData.data[str.slice(0,-3)+'y']!==undefined)
  {js.w=str.slice(0,-3)+'y'; js.m=jsonData.data[str.slice(0,-3)+'y'];return js}//happy happily
  if(str.slice(-3)=="lly"&&jsonData.data[str.slice(0,-1)]!==undefined)
  {js.w=str.slice(0,-1); js.m=jsonData.data[str.slice(0,-1)];return js}//smally
  if(str.slice(-4)=="ally"&&jsonData.data[str.slice(0,-4)]!==undefined)
  {js.w=str.slice(0,-4); js.m=jsonData.data[str.slice(0,-4)];return js}//basic basically
  // f fe ves
if(str.slice(-3)=="ves"&&jsonData.data[str.slice(0,-3)+'f']!==undefined)
{js.w=str.slice(0,-3)+'f'; js.m=jsonData.data[str.slice(0,-3)+'f'];return js}/// leaf leaves 
if(str.slice(-3)=="ves"&&jsonData.data[str.slice(0,-3)+'fe']!==undefined)
{js.w=str.slice(0,-3)+'fe'; js.m=jsonData.data[str.slice(0,-3)+'fe'];return js}///  life lives
return js
  /*
  if(jsonData.data[str]!==undefined)
  {return jsonData.data[str]}
  if(str.slice(-1)=="s"&&jsonData.data[str.slice(0,-1)]!==undefined)
  {return jsonData.data[str.slice(0,-1)]}
  if(str.slice(-2)=="es"&&jsonData.data[str.slice(0,-2)]!==undefined)
  {return jsonData.data[str.slice(0,-2)]}
  if(str.slice(-3)=="ies"&&jsonData.data[str.slice(0,-3)+'y']!==undefined)
  {return jsonData.data[str.slice(0,-3)+'y']}
  if(str.slice(-1)=="d"&&jsonData.data[str.slice(0,-1)]!==undefined)
  {return jsonData.data[str.slice(0,-1)]}
  if(str.slice(-2)=="ed"&&jsonData.data[str.slice(0,-2)]!==undefined)
  {return jsonData.data[str.slice(0,-2)]}
  if(str.slice(-2)=="ed"&&jsonData.data[str.slice(0,-3)]!==undefined)
  {return jsonData.data[str.slice(0,-3)]}//stopped
  if(str.slice(-3)=="ied"&&jsonData.data[str.slice(0,-3)+'y']!==undefined)
  {return jsonData.data[str.slice(0,-3)+'y']}
  if(str.slice(-3)=="ing"&&jsonData.data[str.slice(0,-3)]!==undefined)
  {return jsonData.data[str.slice(0,-3)]}
  if(str.slice(-3)=="ing"&&jsonData.data[str.slice(0,-3)+'e']!==undefined)
  {return jsonData.data[str.slice(0,-3)+'e']}//move,moving
  if(str.slice(-3)=="ing"&&jsonData.data[str.slice(0,-4)]!==undefined)
  {return jsonData.data[str.slice(0,-4)]}//swimming
  // +er +est
  if(str.slice(-2)=="er"&&jsonData.data[str.slice(0,-2)]!==undefined)
  {return jsonData.data[str.slice(0,-2)]}// taller
  if(str.slice(-3)=="ier"&&jsonData.data[str.slice(0,-3)+'y']!==undefined)
  {return jsonData.data[str.slice(0,-3)+'y']}//easier
  if(str.slice(-2)=="er"&&jsonData.data[str.slice(0,-3)]!==undefined)
  {return jsonData.data[str.slice(0,-3)]}//bigger
  if(str.slice(-2)=="er"&&jsonData.data[str.slice(0,-1)]!==undefined)
  {return jsonData.data[str.slice(0,-1)]}// nicer
  if(str.slice(-3)=="est"&&jsonData.data[str.slice(0,-3)]!==undefined)
  {return jsonData.data[str.slice(0,-3)]}//tallest
  if(str.slice(-4)=="iest"&&jsonData.data[str.slice(0,-4)+'y']!==undefined)
  {return jsonData.data[str.slice(0,-4)+'y']}//easiest
  if(str.slice(-3)=="est"&&jsonData.data[str.slice(0,-4)]!==undefined)
  {return jsonData.data[str.slice(0,-4)]}//biggest
  if(str.slice(-3)=="est"&&jsonData.data[str.slice(0,-2)]!==undefined)
  {return jsonData.data[str.slice(0,-2)]}//nicest

  //形容词变副词
  if(str.slice(-2)=="ly"&&jsonData.data[str.slice(0,-2)]!==undefined)
  {return jsonData.data[str.slice(0,-2)]}// slowly
  if(str.slice(-2)=="ly"&&jsonData.data[str.slice(0,-2)+'e']!==undefined)
  {return jsonData.data[str.slice(0,-2)+'e']}// true truly
  if(str.slice(-2)=="ly"&&jsonData.data[str.slice(0,-2)+'le']!==undefined)
  {return jsonData.data[str.slice(0,-2)+'le']}// able ably
  if(str.slice(-3)=="ily"&&jsonData.data[str.slice(0,-3)+'y']!==undefined)
  {return jsonData.data[str.slice(0,-3)+'y']}//happy happily
  if(str.slice(-3)=="lly"&&jsonData.data[str.slice(0,-1)]!==undefined)
  {return jsonData.data[str.slice(0,-1)]}//smally
  if(str.slice(-4)=="ally"&&jsonData.data[str.slice(0,-4)]!==undefined)
  {return jsonData.data[str.slice(0,-4)]}//basic basically
// f fe ves
if(str.slice(-3)=="ves"&&jsonData.data[str.slice(0,-3)+'f']!==undefined)
{return jsonData.data[str.slice(0,-3)+'f']}// leaf leaves 
if(str.slice(-3)=="ves"&&jsonData.data[str.slice(0,-3)+'fe']!==undefined)
{return jsonData.data[str.slice(0,-3)+'fe']}//  life lives
*/
  },

处理完毕后,还缺的,基本就是动词不规则形式了。

下面是百度词条里边找的,然后规范化了一下,里边有些空格去掉了。

awake awoke awoken
be was*were been
bear bore born
beat beat beaten
become became become
begin began begun
befall befell befallen
bend bent bent
bet bet bet
bind bound bound
bite bit bitten
bleed bled bled
blend blended blent
bless blessed blest
blow blew blown
break broke broken
breed bred bred
bring brought brought
build built built
burn burnt burnt
burst burst burst
buy bought bought
cast cast cast
catch caught caught
choose chose chosen
cleave clove cloven
cleave cleft cleft
cling clung clung
clothe clad clad
come came come
cost cost cost
creep crept crept
crow crew crowed
cut cut cut
dare durst dared
deal dealt dealt
dig dug dug
do did done
draw drew drawn
dream dreamt dreamt
drink drank drunk
drive drove driven
dwell dwelt dwelt
eat ate eaten
fall fell fallen
feed fed fed
feel felt felt
fight fought fought
find found found
flee fled fled
fling flung flung
fly flew flown
forbid forbade forbidden
forbid forbad forbidden
forecast forecast*forecasted forecast*forecasted
forget forgot forgotten
forgive forgave forgiven
freeze froze frozen
gainsay gainsaid gainsaid
get got gotten
gild gilded*gilt gilded
gird girded*girt girded*girt
give gave given
go went gone
grave graved graven*graved
grind ground ground
grow grew grown
hang hung*hanged hung*hanged
have had had
hear heard heard
heave heaved*hove hesved*hove
hide hid hidden
hit hit hit
hold held held
hurt hurt hurt
keep kept kept
kneel knelt knelt
know knew known
lade laded laden
lay laid laid
lead led led
lean leant*leaned leant*leaned
leap leapt*leaped leapt*leaped
learn learnt*learned learnt*learned
leave left left
lend lent lent
let let let
lie lay lain
lie lied lied
light lit*lighted lit*lighted
lose lost lost
make made made
mean meant meant
meet met met
melt melted meited*molten
mistake mistook mistaken
misunderstand misunderstood misunderstood
outgrow outgrew outgrown
overcome overcame overcome
oversee oversaw overseen
pay paid paid
prove proved proved*proven
put put put
quit quitted*quit quitted*quit
read read read
rend rent rent
ride rode ridden
ring rang rung
rise rose risen
rive rived riven*rived
run ran run
saw sawed sawn*sawed
say said said
see saw seen
seek sought sought
sell sold sold
send sent sent
set set set
sew sewed sewn*sewed
shake shook shaken
shave shaved shaved*shaven
shear sheared sheared*shorn
shed shed shed
shine shone shone
shoe shod shod
shoot shot shot
show showed shown*showed
shrink shrank*shrunk shrunk*shrunken
shrive shrove*shrived shriven*shrived
shut shut shut
sing sang sung
sink sank*sunk sunk*sunken
sit sat sat
slay slew slain
sleep slept slept
slide slid slid
sling slung slung
slink slunk slunk
slit slit slit
smell smelt*smelled smelt*smelled
smite smote smitten
sow sowed sown*sowed
speak spoke spoken
speed sped*speeded sped*speeded
spell spelt*spelled spelt*spelled
spend spent spent
spill spilt*spilled spilt*spilled
spin spun*span spun
spit spat*spit spat*spit
spoil spoilt*spoiled spoilt*spoiled
spread spread spread
spring sprang*sprung sprung
stand stood stood
stave staved*stove staved*stove
steal stole stolen
stick stuck stuck
sting stung stung
swear swore sworn
sweep swept swept
swell swelled swollen*swelled
swim swam swum
swing swung swung
take took taken
teach taught taught
tear tore torn
tell told told
think thought thought
throw threw thrown
thrust thrust thrust
tread trod trodden*trod
upset upset upset
wake woke*waked woken*waked
wear wore worn
weave wove woven
weep wept wept
win won won
wind wound wound
work worked*wrought worked*wrought
wring wrung wrung
write wrote written

不规则形式的js ,带了2个*,到时候可以替换成回车等,打印出来好看一点。"awoke":"(awake/əˈweɪk/ awoke awoken)**v.醒来,醒悟adj.醒的",其中有awake的音标,就是原单词的音标和意思有了。主要是配合我的音语标注工具用的,这个单词意思=原单词的意思,但是原单词的音标在文章中应为没有出现原单词所以,要单独标注(微信小程序-复制就好)

"awoke":"(awake/əˈweɪk/ awoke awoken)**v.醒来,醒悟adj.醒的","awoken":"(awake/əˈweɪk/ awoke awoken)**v.醒来,醒悟adj.醒的","was/were":"(be/biː/ was/were been)**v.是,存在","been":"(be/biː/ was/were been)**v.是,存在","bore":"(bear/beə/ bore born)**v.负担,忍受,生育","born":"(bear/beə/ bore born)**v.负担,忍受,生育","beat":"(beat/biːt/ beat beaten)**v.打,击败n.击打","beaten":"(beat/biːt/ beat beaten)**v.打,击败n.击打","became":"(become/bɪˈkʌm/ became become)**v.变成","become":"(become/bɪˈkʌm/ became become)**v.变成","began":"(begin/bɪˈgɪn/ began begun)**v.开始,着手进行","begun":"(begin/bɪˈgɪn/ began begun)**v.开始,着手进行","befell":"(befall/bɪˈfɔːl/ befell befallen)**v.降临","befallen":"(befall/bɪˈfɔːl/ befell befallen)**v.降临","bent":"(bend/bɛnd/ bent bent)**v.弯曲,俯身n.拐弯","bent":"(bend/bɛnd/ bent bent)**v.弯曲,俯身n.拐弯","bet":"(bet/bɛt/ bet bet)**n.v.打赌","bet":"(bet/bɛt/ bet bet)**n.v.打赌","bound":"(bind/baɪnd/ bound bound)**v.捆绑,约束","bound":"(bind/baɪnd/ bound bound)**v.捆绑,约束","bit":"(bite/baɪt/ bit bitten)**n.v.咬,叮n.一口","bitten":"(bite/baɪt/ bit bitten)**n.v.咬,叮n.一口","bled":"(bleed/bliːd/ bled bled)**v.出血,流血","bled":"(bleed/bliːd/ bled bled)**v.出血,流血","blended":"(blend/blɛnd/ blended blent)**v.混合,掺混","blent":"(blend/blɛnd/ blended blent)**v.混合,掺混","blessed":"(bless/blɛs/ blessed blest)**v.保佑,祝福","blest":"(bless/blɛs/ blessed blest)**v.保佑,祝福","blew":"(blow/bləʊ/ blew blown)**v.吹,吹掉,刮风","blown":"(blow/bləʊ/ blew blown)**v.吹,吹掉,刮风","broke":"(break/breɪk/ broke broken)**n.打破,破坏n.裂口","broken":"(break/breɪk/ broke broken)**n.打破,破坏n.裂口","bred":"(breed/briːd/ bred bred)**v.繁殖,饲养n.品种","bred":"(breed/briːd/ bred bred)**v.繁殖,饲养n.品种","brought":"(bring/brɪŋ/ brought brought)**v.拿来,带来","brought":"(bring/brɪŋ/ brought brought)**v.拿来,带来","built":"(build/bɪld/ built built)**v.建造,建设","built":"(build/bɪld/ built built)**v.建造,建设","burnt":"(burn/bɜːn/ burnt burnt)**v.烧,燃烧,烧伤","burnt":"(burn/bɜːn/ burnt burnt)**v.烧,燃烧,烧伤","burst":"(burst/bɜːst/ burst burst)**v.n.爆炸,破裂","burst":"(burst/bɜːst/ burst burst)**v.n.爆炸,破裂","bought":"(buy/baɪ/ bought bought)**v.买,购买","bought":"(buy/baɪ/ bought bought)**v.买,购买","cast":"(cast/kɑːst/ cast cast)**v.掷,投射,铸造","cast":"(cast/kɑːst/ cast cast)**v.掷,投射,铸造","caught":"(catch/kæʧ/ caught caught)**v.捕获,染病n.捉","caught":"(catch/kæʧ/ caught caught)**v.捕获,染病n.捉","chose":"(choose/ʧuːz/ chose chosen)**v.选择,愿意","chosen":"(choose/ʧuːz/ chose chosen)**v.选择,愿意","clove":"(cleave/kliːv/ clove cloven)**v.劈开","cloven":"(cleave/kliːv/ clove cloven)**v.劈开","cleft":"(cleave/kliːv/ cleft cleft)**v.劈开","cleft":"(cleave/kliːv/ cleft cleft)**v.劈开","clung":"(cling/klɪŋ/ clung clung)**v.粘住,依附","clung":"(cling/klɪŋ/ clung clung)**v.粘住,依附","clad":"(clothe/kləʊð/ clad clad)**v.给...着衣","clad":"(clothe/kləʊð/ clad clad)**v.给...着衣","came":"(come/kʌm/ came come)**v.来到,出现,发生","come":"(come/kʌm/ came come)**v.来到,出现,发生","cost":"(cost/kɒst/ cost cost)**n.成本,费用v.花费","cost":"(cost/kɒst/ cost cost)**n.成本,费用v.花费","crept":"(creep/kriːp/ crept crept)**v.爬行,蔓延","crept":"(creep/kriːp/ crept crept)**v.爬行,蔓延","crew":"(crow/krəʊ/ crew crowed)**n.乌鸦v.鸦啼","crowed":"(crow/krəʊ/ crew crowed)**n.乌鸦v.鸦啼","cut":"(cut/kʌt/ cut cut)**v.割,切,削减,切断","cut":"(cut/kʌt/ cut cut)**v.割,切,削减,切断","durst":"(dare/deə/ durst dared)**v.敢,挑战,竟敢","dared":"(dare/deə/ durst dared)**v.敢,挑战,竟敢","dealt":"(deal/diːl/ dealt dealt)**v.处理,交易n.买卖","dealt":"(deal/diːl/ dealt dealt)**v.处理,交易n.买卖","dug":"(dig/dɪg/ dug dug)**v.挖,采掘","dug":"(dig/dɪg/ dug dug)**v.挖,采掘","did":"(do/duː/ did done)**v.做,干,足够,制作","done":"(do/duː/ did done)**v.做,干,足够,制作","drew":"(draw/drɔː/ drew drawn)**v.画,拉,吸引","drawn":"(draw/drɔː/ drew drawn)**v.画,拉,吸引","dreamt":"(dream/driːm/ dreamt dreamt)**n.梦,梦想v.做梦","dreamt":"(dream/driːm/ dreamt dreamt)**n.梦,梦想v.做梦","drank":"(drink/drɪŋk/ drank drunk)**v.喝,饮n.饮料,酒","drunk":"(drink/drɪŋk/ drank drunk)**v.喝,饮n.饮料,酒","drove":"(drive/draɪv/ drove driven)**v.驾驶,乘车n.车道","driven":"(drive/draɪv/ drove driven)**v.驾驶,乘车n.车道","dwelt":"(dwell/dwɛl/ dwelt dwelt)**v.居住","dwelt":"(dwell/dwɛl/ dwelt dwelt)**v.居住","ate":"(eat/iːt/ ate eaten)**v.吃","eaten":"(eat/iːt/ ate eaten)**v.吃","fell":"(fall/fɔːl/ fell fallen)**v.落下,跌倒n.瀑布","fallen":"(fall/fɔːl/ fell fallen)**v.落下,跌倒n.瀑布","fed":"(feed/fiːd/ fed fed)**v.喂养,吃东西","fed":"(feed/fiːd/ fed fed)**v.喂养,吃东西","felt":"(feel/fiːl/ felt felt)**v.感到,摸,意识到","felt":"(feel/fiːl/ felt felt)**v.感到,摸,意识到","fought":"(fight/faɪt/ fought fought)**v.打仗,战斗,作斗争","fought":"(fight/faɪt/ fought fought)**v.打仗,战斗,作斗争","found":"(find/faɪnd/ found found)**v.寻找,找到,发现","found":"(find/faɪnd/ found found)**v.寻找,找到,发现","fled":"(flee/fliː/ fled fled)**v.逃走,消散","fled":"(flee/fliː/ fled fled)**v.逃走,消散","flung":"(fling/flɪŋ/ flung flung)**v.抛,掷","flung":"(fling/flɪŋ/ flung flung)**v.抛,掷","flew":"(fly/flaɪ/ flew flown)**v.飞,驾机n.苍蝇","flown":"(fly/flaɪ/ flew flown)**v.飞,驾机n.苍蝇","forbade":"(forbid/fəˈbɪd/ forbade forbidden)**v.禁止,不许","forbidden":"(forbid/fəˈbɪd/ forbade forbidden)**v.禁止,不许","forbad":"(forbid/fəˈbɪd/ forbad forbidden)**v.禁止,不许","forbidden":"(forbid/fəˈbɪd/ forbad forbidden)**v.禁止,不许","forecast/forecasted":"(forecast/ˈfɔːkɑːst/ forecast/forecasted forecast/forecasted)**n.v.预测,预报","forecast/forecasted":"(forecast/ˈfɔːkɑːst/ forecast/forecasted forecast/forecasted)**n.v.预测,预报","forgot":"(forget/fəˈgɛt/ forgot forgotten)**v.忘记,疏忽,没想到","forgotten":"(forget/fəˈgɛt/ forgot forgotten)**v.忘记,疏忽,没想到","forgave":"(forgive/fəˈgɪv/ forgave forgiven)**v.饶恕,原谅,豁免","forgiven":"(forgive/fəˈgɪv/ forgave forgiven)**v.饶恕,原谅,豁免","froze":"(freeze/friːz/ froze frozen)**v.结冰,楞住,冻结","frozen":"(freeze/friːz/ froze frozen)**v.结冰,楞住,冻结","gainsaid":"(gainsay/geɪnˈseɪ/ gainsaid gainsaid)**v.反驳","gainsaid":"(gainsay/geɪnˈseɪ/ gainsaid gainsaid)**v.反驳","got":"(get/gɛt/ got gotten)**v.获得,记住,到达","gotten":"(get/gɛt/ got gotten)**v.获得,记住,到达","gilded/gilt":"(gild/gɪld/ gilded/gilt gilded)**v.镀金","gilded":"(gild/gɪld/ gilded/gilt gilded)**v.镀金","girded/girt":"(gird/gɜːd/ girded/girt girded/girt)**v.束腰","girded/girt":"(gird/gɜːd/ girded/girt girded/girt)**v.束腰","gave":"(give/gɪv/ gave given)**v.给予,付出n.让步","given":"(give/gɪv/ gave given)**v.给予,付出n.让步","went":"(go/gəʊ/ went gone)**v.去,进行,打算","gone":"(go/gəʊ/ went gone)**v.去,进行,打算","graved":"(grave/greɪv/ graved graven/graved)**adj.严肃的,庄重的","graven/graved":"(grave/greɪv/ graved graven/graved)**adj.严肃的,庄重的","ground":"(grind/graɪnd/ ground ground)**v.碾碎,磨快,折磨","ground":"(grind/graɪnd/ ground ground)**v.碾碎,磨快,折磨","grew":"(grow/grəʊ/ grew grown)**v.增长,成长,种植","grown":"(grow/grəʊ/ grew grown)**v.增长,成长,种植","hung/hanged":"(hang/hæŋ/ hung/hanged hung/hanged)**v.挂,垂,绞死","hung/hanged":"(hang/hæŋ/ hung/hanged hung/hanged)**v.挂,垂,绞死","had":"(have/hæv/ had had)**v.有,不得不,拿","had":"(have/hæv/ had had)**v.有,不得不,拿","heard":"(hear/hɪə/ heard heard)**v.听见,听取,听说","heard":"(hear/hɪə/ heard heard)**v.听见,听取,听说","heaved/hove":"(heave/hiːv/ heaved/hove hesved/hove)**v.起伏,举起,叹气","hesved/hove":"(heave/hiːv/ heaved/hove hesved/hove)**v.起伏,举起,叹气","hid":"(hide/haɪd/ hid hidden)**v.躲藏,隐瞒,掩盖","hidden":"(hide/haɪd/ hid hidden)**v.躲藏,隐瞒,掩盖","hit":"(hit/hɪt/ hit hit)**v.打,碰,打击","hit":"(hit/hɪt/ hit hit)**v.打,碰,打击","held":"(hold/həʊld/ held held)**v.握住,容纳n.控制","held":"(hold/həʊld/ held held)**v.握住,容纳n.控制","hurt":"(hurt/hɜːt/ hurt hurt)**v.使受伤,使痛,伤害","hurt":"(hurt/hɜːt/ hurt hurt)**v.使受伤,使痛,伤害","kept":"(keep/kiːp/ kept kept)**v.保持,保留,防止","kept":"(keep/kiːp/ kept kept)**v.保持,保留,防止","knelt":"(kneel/niːl/ knelt knelt)**v.跪下","knelt":"(kneel/niːl/ knelt knelt)**v.跪下","knew":"(know/nəʊ/ knew known)**n.知道,认识,懂","known":"(know/nəʊ/ knew known)**n.知道,认识,懂","laded":"(lade/leɪd/ laded laden)**v.雷德","laden":"(lade/leɪd/ laded laden)**v.雷德","laid":"(lay/leɪ/ laid laid)**v.放,安排,打基础","laid":"(lay/leɪ/ laid laid)**v.放,安排,打基础","led":"(lead/liːd/ led led)**v.引导,领先,率领","led":"(lead/liːd/ led led)**v.引导,领先,率领","leant/leaned":"(lean/liːn/ leant/leaned leant/leaned)**v.俯身,倚adj.瘦的","leant/leaned":"(lean/liːn/ leant/leaned leant/leaned)**v.俯身,倚adj.瘦的","leapt/leaped":"(leap/liːp/ leapt/leaped leapt/leaped)**v.n.跳跃adj.闰年的","leapt/leaped":"(leap/liːp/ leapt/leaped leapt/leaped)**v.n.跳跃adj.闰年的","learnt/learned":"(learn/lɜːn/ learnt/learned learnt/learned)**v.学习,获悉","learnt/learned":"(learn/lɜːn/ learnt/learned learnt/learned)**v.学习,获悉","left":"(leave/liːv/ left left)**v.出发,离开n.休假","left":"(leave/liːv/ left left)**v.出发,离开n.休假","lent":"(lend/lɛnd/ lent lent)**v.出借,贷款","lent":"(lend/lɛnd/ lent lent)**v.出借,贷款","let":"(let/lɛt/ let let)**v.让,使","let":"(let/lɛt/ let let)**v.让,使","lay":"(lie/laɪ/ lay lain)**v.躺,位于n.说谎","lain":"(lie/laɪ/ lay lain)**v.躺,位于n.说谎","lied":"(lie/laɪ/ lied lied)**v.躺,位于n.说谎","lied":"(lie/laɪ/ lied lied)**v.躺,位于n.说谎","lit/lighted":"(light/laɪt/ lit/lighted lit/lighted)**n.光,灯adj.明亮的","lit/lighted":"(light/laɪt/ lit/lighted lit/lighted)**n.光,灯adj.明亮的","lost":"(lose/luːz/ lost lost)**v.失去,丢失,输","lost":"(lose/luːz/ lost lost)**v.失去,丢失,输","made":"(make/meɪk/ made made)**v.做,制造n.种类","made":"(make/meɪk/ made made)**v.做,制造n.种类","meant":"(mean/miːn/ meant meant)**v.打算,意指","meant":"(mean/miːn/ meant meant)**v.打算,意指","met":"(meet/miːt/ met met)**v.遇到,会见,迎接","met":"(meet/miːt/ met met)**v.遇到,会见,迎接","melted":"(melt/mɛlt/ melted meited/molten)**v.熔化,融解","meited/molten":"(melt/mɛlt/ melted meited/molten)**v.熔化,融解","mistook":"(mistake/mɪsˈteɪk/ mistook mistaken)**n.错误,误解v.搞错","mistaken":"(mistake/mɪsˈteɪk/ mistook mistaken)**n.错误,误解v.搞错","misunderstood":"(misunderstand/ˌmɪsʌndəˈstænd/ misunderstood misunderstood)**v.误解,误会","misunderstood":"(misunderstand/ˌmɪsʌndəˈstænd/ misunderstood misunderstood)**v.误解,误会","outgrew":"(outgrow/aʊtˈgrəʊ/ outgrew outgrown)**v.长大","outgrown":"(outgrow/aʊtˈgrəʊ/ outgrew outgrown)**v.长大","overcame":"(overcome/ˌəʊvəˈkʌm/ overcame overcome)**v.征服,克服,压倒","overcome":"(overcome/ˌəʊvəˈkʌm/ overcame overcome)**v.征服,克服,压倒","oversaw":"(oversee/ˌəʊvəˈsiː/ oversaw overseen)**v.监督","overseen":"(oversee/ˌəʊvəˈsiː/ oversaw overseen)**v.监督","paid":"(pay/peɪ/ paid paid)**v.支付n.工资","paid":"(pay/peɪ/ paid paid)**v.支付n.工资","proved":"(prove/pruːv/ proved proved/proven)**v.证明,表明是","proved/proven":"(prove/pruːv/ proved proved/proven)**v.证明,表明是","put":"(put/pʊt/ put put)**v.放置,估价,表达","put":"(put/pʊt/ put put)**v.放置,估价,表达","quitted/quit":"(quit/kwɪt/ quitted/quit quitted/quit)**v.停止,放弃,退出","quitted/quit":"(quit/kwɪt/ quitted/quit quitted/quit)**v.停止,放弃,退出","read":"(read/riːd/ read read)**v.读,阅读,朗诵","read":"(read/riːd/ read read)**v.读,阅读,朗诵","rent":"(rend/rɛnd/ rent rent)**v.撕裂","rent":"(rend/rɛnd/ rent rent)**v.撕裂","rode":"(ride/raɪd/ rode ridden)**v.乘坐,骑n.乘车","ridden":"(ride/raɪd/ rode ridden)**v.乘坐,骑n.乘车","rang":"(ring/rɪŋ/ rang rung)**v.鸣,打铃,打电话","rung":"(ring/rɪŋ/ rang rung)**v.鸣,打铃,打电话","rose":"(rise/raɪz/ rose risen)**v.起立,晋级,增长","risen":"(rise/raɪz/ rose risen)**v.起立,晋级,增长","rived":"(rive/raɪv/ rived riven/rived)**v.裂开","riven/rived":"(rive/raɪv/ rived riven/rived)**v.裂开","ran":"(run/rʌn/ ran run)**v.跑,竞选,行驶","run":"(run/rʌn/ ran run)**v.跑,竞选,行驶","sawed":"(saw/sɔː/ sawed sawn/sawed)**v.n.锯","sawn/sawed":"(saw/sɔː/ sawed sawn/sawed)**v.n.锯","said":"(say/seɪ/ said said)**v.说n.发言(权)","said":"(say/seɪ/ said said)**v.说n.发言(权)","saw":"(see/siː/ saw seen)**v.看见,明白,查看","seen":"(see/siː/ saw seen)**v.看见,明白,查看","sought":"(seek/siːk/ sought sought)**v.寻觅,企图获得","sought":"(seek/siːk/ sought sought)**v.寻觅,企图获得","sold":"(sell/sɛl/ sold sold)**v.卖,出售","sold":"(sell/sɛl/ sold sold)**v.卖,出售","sent":"(send/sɛnd/ sent sent)**v.派遣,送,寄出,请","sent":"(send/sɛnd/ sent sent)**v.派遣,送,寄出,请","set":"(set/sɛt/ set set)**v.放,指定n.全套","set":"(set/sɛt/ set set)**v.放,指定n.全套","sewed":"(sew/səʊ/ sewed sewn/sewed)**v.缝纫","sewn/sewed":"(sew/səʊ/ sewed sewn/sewed)**v.缝纫","shook":"(shake/ʃeɪk/ shook shaken)**v.摇动,发抖,握手","shaken":"(shake/ʃeɪk/ shook shaken)**v.摇动,发抖,握手","shaved":"(shave/ʃeɪv/ shaved shaved/shaven)**v.剃,修脸","shaved/shaven":"(shave/ʃeɪv/ shaved shaved/shaven)**v.剃,修脸","sheared":"(shear/ʃɪə/ sheared sheared/shorn)**v.剪毛,切割","sheared/shorn":"(shear/ʃɪə/ sheared sheared/shorn)**v.剪毛,切割","shed":"(shed/ʃɛd/ shed shed)**v.流下n.棚子","shed":"(shed/ʃɛd/ shed shed)**v.流下n.棚子","shone":"(shine/ʃaɪn/ shone shone)**v.发光,照射,照耀","shone":"(shine/ʃaɪn/ shone shone)**v.发光,照射,照耀","shod":"(shoe/ʃuː/ shod shod)**n.鞋","shod":"(shoe/ʃuː/ shod shod)**n.鞋","shot":"(shoot/ʃuːt/ shot shot)**v.射击,发芽n.嫩芽","shot":"(shoot/ʃuːt/ shot shot)**v.射击,发芽n.嫩芽","showed":"(show/ʃəʊ/ showed shown/showed)**v.显示,表明n.演出","shown/showed":"(show/ʃəʊ/ showed shown/showed)**v.显示,表明n.演出","shrank/shrunk":"(shrink/ʃrɪŋk/ shrank/shrunk shrunk/shrunken)**v.收缩,畏缩","shrunk/shrunken":"(shrink/ʃrɪŋk/ shrank/shrunk shrunk/shrunken)**v.收缩,畏缩","shrove/shrived":"(shrive/ʃraɪv/ shrove/shrived shriven/shrived)**v.尖叫","shriven/shrived":"(shrive/ʃraɪv/ shrove/shrived shriven/shrived)**v.尖叫","shut":"(shut/ʃʌt/ shut shut)**v.关闭,合拢","shut":"(shut/ʃʌt/ shut shut)**v.关闭,合拢","sang":"(sing/sɪŋ/ sang sung)**v.唱","sung":"(sing/sɪŋ/ sang sung)**v.唱","sank/sunk":"(sink/sɪŋk/ sank/sunk sunk/sunken)**v.沉,下落n.水槽","sunk/sunken":"(sink/sɪŋk/ sank/sunk sunk/sunken)**v.沉,下落n.水槽","sat":"(sit/sɪt/ sat sat)**v.坐,栖息","sat":"(sit/sɪt/ sat sat)**v.坐,栖息","slew":"(slay/sleɪ/ slew slain)**v.屠杀","slain":"(slay/sleɪ/ slew slain)**v.屠杀","slept":"(sleep/sliːp/ slept slept)**v.n.睡眠","slept":"(sleep/sliːp/ slept slept)**v.n.睡眠","slid":"(slide/slaɪd/ slid slid)**v.滑,溜","slid":"(slide/slaɪd/ slid slid)**v.滑,溜","slung":"(sling/slɪŋ/ slung slung)**v.吊索","slung":"(sling/slɪŋ/ slung slung)**v.吊索","slunk":"(slink/slɪŋk/ slunk slunk)**v.溜走","slunk":"(slink/slɪŋk/ slunk slunk)**v.溜走","slit":"(slit/slɪt/ slit slit)**v.割裂n.狭口,裂缝","slit":"(slit/slɪt/ slit slit)**v.割裂n.狭口,裂缝","smelt/smelled":"(smell/smɛl/ smelt/smelled smelt/smelled)**v.嗅,发出气味n.气味","smelt/smelled":"(smell/smɛl/ smelt/smelled smelt/smelled)**v.嗅,发出气味n.气味","smote":"(smite/smaɪt/ smote smitten)**v.猛打","smitten":"(smite/smaɪt/ smote smitten)**v.猛打","sowed":"(sow/səʊ/ sowed sown/sowed)**v.播种,散布n.母猪","sown/sowed":"(sow/səʊ/ sowed sown/sowed)**v.播种,散布n.母猪","spoke":"(speak/spiːk/ spoke spoken)**v.说话,发言,讲","spoken":"(speak/spiːk/ spoke spoken)**v.说话,发言,讲","sped/speeded":"(speed/spiːd/ sped/speeded sped/speeded)**n.速度v.飞驰","sped/speeded":"(speed/spiːd/ sped/speeded sped/speeded)**n.速度v.飞驰","spelt/spelled":"(spell/spɛl/ spelt/spelled spelt/spelled)**v.拼写,咒语","spelt/spelled":"(spell/spɛl/ spelt/spelled spelt/spelled)**v.拼写,咒语","spent":"(spend/spɛnd/ spent spent)**v.花费,消耗","spent":"(spend/spɛnd/ spent spent)**v.花费,消耗","spilt/spilled":"(spill/spɪl/ spilt/spilled spilt/spilled)**v.溢出,流出","spilt/spilled":"(spill/spɪl/ spilt/spilled spilt/spilled)**v.溢出,流出","spun/span":"(spin/spɪn/ spun/span spun)**v.自转,纺","spun":"(spin/spɪn/ spun/span spun)**v.自转,纺","spat/spit":"(spit/spɪt/ spat/spit spat/spit)**v.吐,倾吐n.唾液","spat/spit":"(spit/spɪt/ spat/spit spat/spit)**v.吐,倾吐n.唾液","spoilt/spoiled":"(spoil/spɔːɪl/ spoilt/spoiled spoilt/spoiled)**v.损坏,宠坏","spoilt/spoiled":"(spoil/spɔːɪl/ spoilt/spoiled spoilt/spoiled)**v.损坏,宠坏","spread":"(spread/sprɛd/ spread spread)**v.伸开,散布,传播","spread":"(spread/sprɛd/ spread spread)**v.伸开,散布,传播","sprang/sprung":"(spring/sprɪŋ/ sprang/sprung sprung)**v.跳跃,萌芽n.春季","sprung":"(spring/sprɪŋ/ sprang/sprung sprung)**v.跳跃,萌芽n.春季","stood":"(stand/stænd/ stood stood)**v.站立,坐落,忍受","stood":"(stand/stænd/ stood stood)**v.站立,坐落,忍受","staved/stove":"(stave/steɪv/ staved/stove staved/stove)**v.梯级","staved/stove":"(stave/steɪv/ staved/stove staved/stove)**v.梯级","stole":"(steal/stiːl/ stole stolen)**v.偷窃","stolen":"(steal/stiːl/ stole stolen)**v.偷窃","stuck":"(stick/stɪk/ stuck stuck)**n.枝,杆,手杖v.扎","stuck":"(stick/stɪk/ stuck stuck)**n.枝,杆,手杖v.扎","stung":"(sting/stɪŋ/ stung stung)**n.刺痛v.刺,叮","stung":"(sting/stɪŋ/ stung stung)**n.刺痛v.刺,叮","swore":"(swear/sweə/ swore sworn)**v.宣誓,诅咒","sworn":"(swear/sweə/ swore sworn)**v.宣誓,诅咒","swept":"(sweep/swiːp/ swept swept)**v.扫除,席卷","swept":"(sweep/swiːp/ swept swept)**v.扫除,席卷","swelled":"(swell/swɛl/ swelled swollen/swelled)**v.膨胀,肿","swollen/swelled":"(swell/swɛl/ swelled swollen/swelled)**v.膨胀,肿","swam":"(swim/swɪm/ swam swum)**v.游泳,游","swum":"(swim/swɪm/ swam swum)**v.游泳,游","swung":"(swing/swɪŋ/ swung swung)**v.摇摆n.秋千","swung":"(swing/swɪŋ/ swung swung)**v.摇摆n.秋千","took":"(take/teɪk/ took taken)**v.拿,带,吃,乘","taken":"(take/teɪk/ took taken)**v.拿,带,吃,乘","taught":"(teach/tiːʧ/ taught taught)**v.教,教书,教导","taught":"(teach/tiːʧ/ taught taught)**v.教,教书,教导","tore":"(tear/teə/ tore torn)**n.眼泪v.撕,拔","torn":"(tear/teə/ tore torn)**n.眼泪v.撕,拔","told":"(tell/tɛl/ told told)**v.告诉,讲,说出","told":"(tell/tɛl/ told told)**v.告诉,讲,说出","thought":"(think/θɪŋk/ thought thought)**v.想,相信,认为","thought":"(think/θɪŋk/ thought thought)**v.想,相信,认为","threw":"(throw/θrəʊ/ threw thrown)**v.n.投,扔,抛","thrown":"(throw/θrəʊ/ threw thrown)**v.n.投,扔,抛","thrust":"(thrust/θrʌst/ thrust thrust)**v.强推,插入,刺","thrust":"(thrust/θrʌst/ thrust thrust)**v.强推,插入,刺","trod":"(tread/trɛd/ trod trodden/trod)**v.踩,践踏","trodden/trod":"(tread/trɛd/ trod trodden/trod)**v.踩,践踏","upset":"(upset/ʌpˈsɛt/ upset upset)**v.倾覆,打乱,使心烦","upset":"(upset/ʌpˈsɛt/ upset upset)**v.倾覆,打乱,使心烦","woke/waked":"(wake/weɪk/ woke/waked woken/waked)**v.醒来","woken/waked":"(wake/weɪk/ woke/waked woken/waked)**v.醒来","wore":"(wear/weə/ wore worn)**v.穿,戴,磨损,耐久","worn":"(wear/weə/ wore worn)**v.穿,戴,磨损,耐久","wove":"(weave/wiːv/ wove woven)**v.编织","woven":"(weave/wiːv/ wove woven)**v.编织","wept":"(weep/wiːp/ wept wept)**v.哭泣,哀悼","wept":"(weep/wiːp/ wept wept)**v.哭泣,哀悼","won":"(win/wɪn/ won won)**v.赢得,成功","won":"(win/wɪn/ won won)**v.赢得,成功","wound":"(wind/wɪnd/ wound wound)**n.风,风声v.绕","wound":"(wind/wɪnd/ wound wound)**n.风,风声v.绕","worked/wrought":"(work/wɜːk/ worked/wrought worked/wrought)**n.劳动,工作,作品","worked/wrought":"(work/wɜːk/ worked/wrought worked/wrought)**n.劳动,工作,作品","wrung":"(wring/rɪŋ/ wrung wrung)**v.拧,扭","wrung":"(wring/rɪŋ/ wrung wrung)**v.拧,扭","wrote":"(write/raɪt/ wrote written)**v.写,写信,写作","written":"(write/raɪt/ wrote written)**v.写,写信,写作" 

还有些问题,因为给的文字,没有是一个个单词,肯定是单词 空格,单词 标点符号这样的,所以在取单词的时候,有符号的单词就需要处理一下,我这边只是列出来部分有符号的单词,并没有处理。下面是小程序格式的数据,自己参考一下,主要是带有连接符的-,和缩写的;因为连接符和破折号等在输入中并没有区分,所以要识别的话,还要多处理一步。

var data={ "above-mentioned":"adj.上述的","absent-minded":"adj.心不在焉的","a.d.":"(缩)公元","adn.":"(缩)广告","aidsn.":"(缩)艾滋病","a.m.":"(缩)上午","aseann.":"(缩)东盟","baby-sit":"v.(替人)看护小孩","baby-sitter":"n.看护小孩的人","ball-pointpen":"n.圆珠笔","bamboo-shoot":"n.竹笋","b.c.":"(缩)公元前","best-seller":"n.畅销书(货)","best-selling":"adj.畅销的","better-off":"adj.经济情况较好的","b/ln.":"(缩)提单","bottle-neck":"n.影响...的环节","bottom-line":"n.末行数字,结果","boxing-day":"n.节礼日","bread-earner":"n.挣钱养家的人","brother-in-law":"n.姻兄(弟)","by-product":"n.副产品","capital-intensive":"adj.资本密集型的","check-out":"n.结帐,离店时限","check-up":"n.核对,检查","cifn.":"(缩)到岸价","c/ov.":"(缩)请转交...","color-blind":"adj.色盲的","counter-offer":"n.还价,还盘","d/an.":"(缩)承兑交单","daughter-in-law":"n.儿媳","dining-room":"n.餐厅","duty-free":"adj.免税的","easy-going":"adj.逍遥自在的","e.g.":"(缩)例如","epoch-making":"adj.划时代的","etc.":"(缩)等等","exercise-book":"n.练习簿","father-in-law":"n.岳父,公公","fire-engine":"n.消防车","first-rate":"adj.第一流的","follow-up":"n.adj.后续(的)","frying-pan":"n.煎锅","get-together":"n.集会,聚会","gnpn.":"(缩)国民总收入","good-bye":"int.再见","good-looking":"adj.好看的","grown-up":"n.成人adj.成人的","hard-working":"adj.勤劳的","hold-up":"n.停顿,耽误","ice-cream":"n.冰淇淋","ice-bound":"adj.冰封的","i.e.":"(缩)即,也就是","incotermsn.":"(缩)国际贸易术语","kilon.":"(缩)公斤,公里","know-how":"n.专项技术,诀窍","labn.":"(缩)实验室","labor-intensive":"adj.劳动密集型的","l/cn.":"(缩)信用证","left-handed":"adj.左手的,左侧的","living-room":"n.客厅,起居室","lock-up":"n.锁,固定资本","long-term":"adj.长期的","make-shift":"adj.临时的n.权宜之计","make-up":"n.气质,化妆品","mathsn.":"(缩)数学","mother-in-law":"n.岳母,婆婆","mr.n.":"(缩)先生","mrs.n.":"(缩)夫人,太太","ms.n.":"(缩)女士","no.n.":"(缩)...号,号码","note-taking":"n.笔记,笔录","off-duty":"adj.不当班的","off-grade":"adj.等外的,质差的","part-time":"adj.计时(干活)的","past-due":"adj.过期的","p.m.":"(缩)下午","post-office":"n.邮局","price-list":"n.价格表","rock-bottom":"n.adj.(价格)最低(的)","sewing-machine":"n.缝纫机","short-weight":"n.短装,短重","sitting-room":"n.起居室","so-called":"adj.所谓的","son-in-law":"n.女婿","s.s.n.":"(缩)轮船","take-off":"n.起飞","tape-recorder":"n.录音机","tape-recording":"n.录音","tie-up":"n.(资金)占用,冻结","upside-down":"adj.颠倒的,倒置的","up-to-date":"adj.时新的,最近的","washing-machine":"n.洗衣机","well-known":"adj.有名的,著名的","x-ray":"n.X射线v.X光检查" }

module.exports = {  
    data: data
}

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/939787.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-17
下一篇 2022-05-17

发表评论

登录后才能评论

评论列表(0条)

保存