č±čŖć® typo ćēęććć³ćć³ććä½ćć¾ććć
ruby 2.0 仄äøć§åćļ¼ćÆćļ¼
ć¤ć³ć¹ćć¼ć«ę¹ę³
gem install typogen
使ēØę¹ę³
typogen [word]
ä¾
typogen sample
åŗå
ample
smple
saple
samle
sampe
sampl
asmple
smaple
sapmle
samlpe
sampel
ćććŖęćć§ęø”ććć word ć«åƾćć¦ę³å®ććć typo ććæć¼ć³ćåŗåćć¦ććć¾ćć
ććć°ć©ć å
ć§ä½æēØćććå “å㯠TypoGen::Typo.create ć使ēØćć¾ćć
irb(main):001:0> require 'typogen'
=> true
irb(main):002:0> TypoGen::Typo.create('sample')
=> ["ample", "smple", "saple", "samle", "sampe", "sampl", "asmple", "smaple", "sapmle", "samlpe", "sampel"]
å®č£ ćć¦ćć typo ććæć¼ć³
- 1ęåęć (install -> intall)
- ęåć®å „ćęæćć (install -> nistall)
- čŖå°¾ć®ēŗé³ćä¼¼ć¦ććć®ć«ē½®ę (creator -> creater)