Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ミススペルを発見するmisspellのご紹介 / Introduce misspell

papix
January 19, 2021

ミススペルを発見するmisspellのご紹介 / Introduce misspell

papix

January 19, 2021
Tweet

More Decks by papix

Other Decks in Technology

Transcript

  1. ࣗݾ঺հ • papix (id:papix / @__papix__) • גࣜձࣾ͸ͯͳ WebΞϓϦέʔγϣϯΤϯδχΞ (2017೥ʙ)

    • ϒϩάMediaνʔϜ → ϚϯΨνʔϜ • Ұൠࣾஂ๏ਓJapan Perl Associationཧࣄ • ϒϩά: https://papix.hatena(blog.(com|jp)|diary.jp)
  2. misspellͰൃݟ͢Δ $ go get -u github.com/client9/misspell/cmd/misspel l $ cat sample.tx

    t - TOOD: typo͕ͳ͍͔֬ೝ͢Δ $ misspell . sample.txt:1:2: "TOOD" is a misspelling of "TODO " $ vim sample.txt # मਖ਼͢Δ.. . $ cat sample.tx t - TODO: typo͕ͳ͍͔֬ೝ͢Δ $ misspell . # ϛεεϖϧ͕ͳ͍ͷͰԿ΋ग़ྗ͸ͳ͍
  3. ༨ஊ: ࣮ࡍʹݟ͔ͭͬͨϛεεϖϧୡ • ໨ࢹͩͱؾ͖ͮʹ͍͘, ͜ΜͳϛεεϖϧΛൃݟ͠·ͨ͠ • cannnot → cannot •

    recomended → recommended • occured → occurred • minumum → minimum • comparision → comparison