Slide 1

Slide 1 text

ϛεεϖϧΛൃݟ͢Δ misspellͷ͝঺հ 2021/1/19 ٢঵ࣉ.pm #25 - papix

Slide 2

Slide 2 text

ࣗݾ঺հ • papix (id:papix / @__papix__) • גࣜձࣾ͸ͯͳ WebΞϓϦέʔγϣϯΤϯδχΞ (2017೥ʙ) • ϒϩάMediaνʔϜ → ϚϯΨνʔϜ • Ұൠࣾஂ๏ਓJapan Perl Associationཧࣄ • ϒϩά: https://papix.hatena(blog.(com|jp)|diary.jp)

Slide 3

Slide 3 text

ࠓ೔͸misspellͷ࿩Λ͠·͢

Slide 4

Slide 4 text

client9/misspell • https://github.com/client9/misspell • Go੡ͷπʔϧ • ӳޠͷϛεεϖϧΛൃݟͯ͘͠ΕΔ܅

Slide 5

Slide 5 text

͜Μͳ͜ͱ͋Γ·ͤΜ͔?

Slide 6

Slide 6 text

͜Μͳ͜ͱ͋Γ·ͤΜ͔? • ม਺໊Λtypo͍ͯͨ͠...! • ެ։͢ΔAPIυΩϡϝϯτʹtypo͕͋ͬͨ...! • σʔλϕʔεͷschemaʹtypo͕͋ͬͨ...!

Slide 7

Slide 7 text

ͦΜͳ͋ͳͨʹmisspell!

Slide 8

Slide 8 text

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 . # ϛεεϖϧ͕ͳ͍ͷͰԿ΋ग़ྗ͸ͳ͍

Slide 9

Slide 9 text

ߋʹ...

Slide 10

Slide 10 text

reviewdog/action-misspell

Slide 11

Slide 11 text

ศར!!!

Slide 12

Slide 12 text

༨ஊ: ࣮ࡍʹݟ͔ͭͬͨϛεεϖϧୡ • ໨ࢹͩͱؾ͖ͮʹ͍͘, ͜ΜͳϛεεϖϧΛൃݟ͠·ͨ͠ • cannnot → cannot • recomended → recommended • occured → occurred • minumum → minimum • comparision → comparison

Slide 13

Slide 13 text

༨ஊ: occured? occurred? • weblioӳ࿨ࣙయΛݟΔͱ... • occured = occurͷաڈܗ, աڈ෼ࢺܗͱ͋Δ • https://ejje.weblio.jp/content/occured

Slide 14

Slide 14 text

༗ࣝऀͷݟղ

Slide 15

Slide 15 text

·ͱΊ • typoͳͲʹΑΔϛεεϖϧΛൃݟ͢ΔmisspellΛ঺հ͠·ͨ͠ • reviewdogͱ࿈ܞ͢Δͱ, Pull Requestʹࣗಈతʹࢦఠͯ͘͠Ε·͢ • ϛεεϖϧ͸୭Ͱ΋΍ͬͯ͠·͏΋ͷ... • ͔͠͠, ͦͷ··࢒͍ͬͯΔͱࠞཚͷݩʹͳΓ͕ͪ • ͏·͘πʔϧΛ࢖ͬͯൃݟ, मਖ਼͍͖ͯ͠·͠ΐ͏!