5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ruby ć§č‹±čŖžć® typo ć‚’ē”Ÿęˆć™ć‚‹ć‚³ćƒžćƒ³ćƒ‰ć‚’ä½œć£ćŸ

5
Posted at

č‹±čŖžć® 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)
5
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?