<?xml version="1.0" encoding="UTF-8"?>
<article>
  <body>UNIX&#31995;&#12398;OS&#12395;&#20184;&#23646;&#12375;&#12390;&#12356;&#12427;look&#12467;&#12510;&#12531;&#12489;&#12434;&#20351;&#12358;&#12392;&#12289;/usr/share/dict/words&#12398;&#12358;&#12385;&#24341;&#25968;&#12391;&#21463;&#12369;&#21462;&#12387;&#12383;&#25991;&#23383;&#21015;&#12391;&#22987;&#12414;&#12387;&#12390;&#12356;&#12427;&#34892;&#12434;&#20986;&#21147;&#12375;&#12390;&#12367;&#12428;&#12414;&#12377;&#12290;

&#12371;&#12435;&#12394;&#24863;&#12376;&#12290;
shell&gt;&gt;
$ look look
look
lookahead
look-alike

  (&#20013;&#30053;)

lookup
lookups
looky
&lt;&lt;shell

&#12371;&#12428;&#12434;&#20351;&#12387;&#12390;&#12473;&#12506;&#12523;&#12481;&#12455;&#12483;&#12463;&#12387;&#12413;&#12356;&#12418;&#12398;&#12434;Ruby&#12391;&#12290;
ruby&gt;&gt;
def spellcheck(word)
  return `look #{word}`.split(&quot;\n&quot;).include?(word)
end

spellcheck(&quot;look&quot;)
#=&gt; true
spellcheck(&quot;loook&quot;)
#=&gt; false
&lt;&lt;ruby

&#12383;&#12384;look&#12467;&#12510;&#12531;&#12489;&#12434;&#21628;&#12403;&#12384;&#12375;&#12383;&#12384;&#12369;&#12391;&#12377;&#12364;&#12539;&#12539;&#12539;&#12290;

&#12399;&#12383;&#12375;&#12390;&#12289;&#20351;&#12358;&#12371;&#12392;&#12399;&#12354;&#12427;&#12398;&#12384;&#12429;&#12358;&#12363;&#12539;&#12539;&#12539;</body>
  <cached-tag-list>ruby</cached-tag-list>
  <comments-count type="integer">0</comments-count>
  <created-at type="datetime">2008-11-10T01:06:39+00:00</created-at>
  <daily-archive-id type="integer">865</daily-archive-id>
  <filter-type>blue_stole</filter-type>
  <id type="integer">1013</id>
  <monthly-archive-id type="integer">111</monthly-archive-id>
  <pdf-digest nil="true"></pdf-digest>
  <permalink nil="true"></permalink>
  <published-at type="datetime">2008-11-10T01:19:29+00:00</published-at>
  <secret>a1f7416f-31f4-4875-b7d1-abef971b458e</secret>
  <title>&#33521;&#21336;&#35486;&#12398;&#12473;&#12506;&#12523;&#12481;&#12455;&#12483;&#12463;</title>
  <updated-at type="datetime">2008-11-10T01:19:29+00:00</updated-at>
  <user-id type="integer">50</user-id>
</article>
