All pastes #243191 Raw Edit

Something

public text v1 · immutable
·published 2006-11-08 04:40 UTC
rendered paste body
#input_control on
on *:input:*: {
  if ($asc($left($1, 1)) == 47) { return }
  var %text
  var %i = 0
  :loop
  inc %i 1
  if (%i > $0) goto endloop
  %text = %text $checkSpelling($ [ $+ [ %i ] ])
  goto loop
  :endloop
  .say %text
  haltdef
}

alias checkSpelling {
  if ($ctrlenter) return $1

  var %word = $1
  var %gotsymbol = $false
  var %symbol
  var %regexp = $regex(gotsymbol, %word, ([\.,\-!@#$%\^&*()_\+=}{/'\:;?><]{1,}$))

  if ($regml(gotsymbol, 0) == 1) {
    %symbol = $regml(gotsymbol, 1)
    if ($len(%symbol) < $len(%word)) {
      %word = $left($1, $calc($len($1) - $len(%symbol)))
      if (%symbol !isin %word) { %gotsymbol = $true }
      else { %word = $1 }
    }
  }

  if (%word == teh) { %word = the }
  else if (%word == Two-Bits) { %word = 2bits }
  else if (%word == TechnoBabble || %word == babs) { %word = babble }
  else if (%word == create_vibe || %word == cv) { %word = ceev }
  else if (%word == adn) { %word = and }
  else if (%word == yuo || %word == u) { %word = you }
  else if (%word == ur) { %word = your }
  else if (%word == r) { %word = are }
  else if (%word == u're) { %word = you're }
  else if (%word == dun) { %word = don't }
  else if (%word == dont && %symbol == ') { %word = don't | %gotsymbol = $false }
  else if (%word == dont || %word == dn't) { %word = don't }
  else if (%word == waht) { %word = what }
  else if (%word == waht's || %word == wht's) { %word = what's }
  else if (%word == txet) { %word = text }
  else if (%word == gonna) { %word = going to }
  else if (%word == gimme) { %word = give me }
  else if (%word == lemme) { %word = let me }
  else if (%word == prolly) { %word = probably }
  else if (%word == shoudl) { %word = should }
  else if (%word == helo) { %word = hello }
  else if (%word == assit) { %word = assist }
  else if (%word == dimsnsions) { %word = dimensions }
  else if (%word == jsut) { %word = just }
  else if (%word == w && %symbol == /) { %word = with | %gotsymbol = $false }
  else if (%word == b4) { %word = before }
  else if (%word == ppl) { %word = people }
  else if (%word == hwo) { %word = how }
  else if (%word == y) { %word = why }
  else if (%word == questin || %word == questoin) { %word = question }
  else if (%word == stuf) { %word = stuff }
  else if (%word == chagne) { %word = change }
  else if (%word == tho) { %word = though }
  else if (%word == runnin) { %word = running }
  else if (%word == tiem) { %word = time }
  else if (%word == yorself) { %word = yourself }
  else if (%word == moutain) { %word = mountain }
  else if (%word == yoru || %word == yuor) { %word = your }
  else if (%word == samll) { %word = small }
  else if (%word == suppot) { %word = support }
  else if (%word == scripr) { %word = script }
  else if (%word == probs) { %word = problems }
  else if (%word == prob) { %word = problem }
  else if (%word == nop) { %word = nope }
  else if (%word == chan) { %word = channel }
  else if (%word == ne1) { %word = anyone }
  else if (%word == inconsitant) { %word = inconsistant }
  else if (%word == imo) { %word = in my opinion }
  else if (%word == imho) { %word = in my honest opinion }
  else if (%word == knwo) { %word = know }
  else if (%word == dunno) { %word = don't know }
  else if (%word == javascrit || %word == js) { %word = javascript }
  else if (%word == bout) { %word = about }
  else if (%word == testign) { %word = testing }
  else if (%word == wnat) { %word = want }
  else if (%word == larget) { %word = larger }
  else if (%word == btw) { %word = by the way }
  else if (%word == moz) { %word = Mozilla }
  else if (%word == atm) { %word = at the moment }
  else if (%word == fullscren) { %word = fullscreen }
  else if (%word == thx) { %word = thanks }
  else if (%word == nething) { %word = anything }
  else if (%word == doign) { %word = doing }
  else if (%word == foudn) { %word = found }
  else if (%word == urself) { %word = yourself }
  else if (%word == d/load) { %word = download }
  else if (%word == prodcuts) { %word = products }
  else if (%word == btn) { %word = button }
  else if (%word == cant' || %word == cnat || %word == cant || %word == cna't) { %word = can't }
  else if (%word == wont' || %word = wnot || %word == wont || %word == wno't) { %word = won't }
  else if (%word == decalred) { %word = declared }
  else if (%word == nopaste) { %word = www.nomorepasting.com }
  else if (%word == pastebin) { %word = http://pastebin.ca }
  else if (%word == soruce) { %word = source }
  else if (%word == ic) { %word = I see }
  else if (%word == gmta) { %word = great minds think alike }
  else if (%word == soemthing) { %word = something }
  else if (%word == bbl) { %word = be back later }
  else if (%word == cehck) { %word = check }
  else if (%word == everythign) { %word = everything }
  else if (%word == checkign) { %word = checking }
  else if (%word == cahnged) { %word = changed }
  else if (%word == woudl) { %word = would }
  else if (%word == lvoe) { %word = love }
  else if (%word == i) { %word = I }
  else if (%word == i'm) { %word = I'm }
  else if (%word == i've || %word == i'v || %word == ive) { %word = I've }
  else if (%word == i'll || %word == I'll) { %word = I will }
  else if (%word == nothign) { %word = nothing }
  else if (%word == tehre) { %word = there }
  else if (%word == iirc) { %word = if I recall correctly }
  else if (%word == imma) { %word = I'm going to }
  else if (%word == bbiab) { %word = be back in a little bit }
  else if (%word == brb) { %word = be right back }
  else if (%word == pls) { %word = please }
  else if (%word == selct) { %word = select }
  else if (%word == ttyl) { %word = talk to you later }
  else if (%word == deff) { %word = definately }
  else if (%word == sry || %word == sory) { %word = sorry }
  else if (%word == u've) { %word = you've }
  else if (%word == u'll) { %word = you'll }
  else if (%word == burry) { %word = bury }
  else if (%word == wont') { %word = won't }
  else if (%word == isnt') { %word = isn't }
  else if (%word == casue) { %word = cause }
  ;  else if (%word == lol) { %word = that's fuckin funny }
  else if (%word == np) { %word = no problem }
  else if (%word == sched) { %word = schedule }
  else if (%word == wiat) { %word = wait }
  else if (%word == cuase) { %word = cause }
  else if (%word == nwo) { %word = now }
  else if (%word == vars) { %word = variables }
  else if (%word == somethign) { %word = something }
  else if (%word == liek) { %word = like }
  else if (%word == coudl) { %word = could }
  else if (%word == friggni) { %word = friggin }
  else if (%word == fnie) { %word = fine }
  else if (%word == fiel) { %word = file }
  else if (%word == lil) { %word = little }
  else if (%word == donig) { %word = doing }
  else if (%word == nto) { %word = not }
  else if (%word == positon) { %word = position }
  else if (%word == savy) { %word = savvy }
  else if (%word == retreive) { %word = retrieve }
  else if (%word == msot) { %word = most }
  else if (%word == uplaod) { %word = upload }
  else if (%word == ot) { %word = to }
  else if (%word == bday) { %word = birthday }
  else if (%word == beet) { %word = beat }
  else if (%word == connectoin) { %word = connection }
  else if (%word == accoutns) { %word = accounts }
  else if (%word == wlil) { %word = will }
  else if (%word == conect) { %word = connect }
  else if (%word == widht) { %word = width }
  else if (%word == mroe) { %word = more }
  else if (%word == wahtever || %word == whtaever) { %word = whatever }
  else if (%word == thsi) { %word = this }
  else if (%word == falsh) { %word = flash }
  else if (%word == ff) { %word = FireFox }
  else if (%word == applicatoin) { %word = application }
  else if (%word == versoin) { %word = version }
  else if (%word == submti) { %word = submit }
  else if (%word == gongi) { %word = going }
  else if (%word == commetns) { %word = comments }
  else if (%word == hlep) { %word = help }
  else if (%word == sessoin) { %word = session }
  else if (%word == siet) { %word = site }
  else if (%word == mosue) { %word = mouse }
  else if (%word == laods) { %word = loads }
  else if (%word == laod) { %word = load }
  else if (%word == palying) { %word = playing }
  else if (%word == thta's || %word == thats || %word == thats') { %word = that's }
  else if (%word == ps) { %word = Photoshop }
  else if (%word == wsa) { %word = was }
  else if (%word == whos' || %word == whos) { %word = who's }
  else if (%word == rigth) { %word = right }
  else if (%word == whta) { %word = what }
  else if (%word == y'd) { %word = why did }
  else if (%word == cehckbox) { %word = checkbox }
  else if (%word == doesnt') { %word = doesn't }
  else if (%word == dispaly) { %word = display }
  else if (%word == couldnt') { %word = couldn't }
  else if (%word == joni) { %word = join }
  else if (%word == bbiaf) { %word = be back in a few }
  else if (%word == iwll) { %word = will }
  else if (%word == otehr) { %word = other }
  else if (%word == heigth || %word == hegiht) { %word = height }
  else if (%word == displya) { %word = display }
  else if (%word == chagned) { %word = changed }
  else if (%word == chekc) { %word = check }
  else if (%word == chekced || %word == chekcde) { %word = checked }
  else if (%word == alwasy) { %word = always }
  else if (%word == hvae) { %word = have }
  else if (%word == whatevre) { %word = whatever }
  else if (%word == tabel) { %word == table }
  else if (%word == avaliable) { %word = available }
  else if (%word == sectoins) { %word = sections }
  else if (%word == locatoin) { %word = location }
  else if (%word == fuckni) { %word = fuckin }
  else if (%word == solutoin) { %word = solution }
  else if (%word == thinkngi) { %word = thinking }
  else if (%word == thk) { %word = thank }
  else if (%word == almot) { %word = almost }
  else if (%word == imgaes) { %word = images }
  else if (%word == upoad) { %word = upload }
  else if (%word == whlie) { %word = while }
  else if (%word == thme) { %word = them }
  else if (%word == ie) { %word = Internet Explorer }
  else if (%word == flase) { %word = false }
  else if (%word == detali) { %word = detail }
  else if (%word == flie) { %word = file }
  else if (%word == optoins) { %word = options }
  else if (%word == optoin) { %word = option }
  else if (%word == idesa) { %word = ideas }
  else if (%word == weddnig) { %word = wedding }
  else if (%word == htat || %word == taht) { %word = that }
  else if (%word == animatoni) { %word = animation }
  else if (%word == paddng) { %word = padding }
  else if (%word == soem) { %word = some }
  else if (%word == moues) { %word = mouse }
  else if (%word == shoud) { %word = should }
  else if (%word == takling) { %word = talking }
  else if (%word == juts) { %word = just }
  else if (%word == dbl) { %word = double }
  else if (%word == db) { %word = database }
  else if (%word == tyep) { %word = type }
  else if (%word == otehrwise) { %word = otherwise }
  else if (%word == eitehr) { %word = either }
  else if (%word == ponit) { %word = point }
  else if (%word == urs) { %word = yours }
  else if (%word == json) { %word = javascript object notation }
  else if (%word == calss) { %word = class }
  else if (%word == abt) { %word = about }
  else if (%word == idk) { %word = I don't know }

  if (%gotsymbol == $true) return %word $+ %symbol
  else return %word
}
#input_control end