Words containing "the" substring: Difference between revisions

added Quackery
(Add Plain English)
(added Quackery)
Line 535:
weatherstripping
/Code$ </lang>
 
=={{header|Quackery}}==
Uses a finite state machine to search efficiently for a substring.
(The fsm to search for "the" is built only once, during compilation.)
Presented as a dialogue in the Quackery shell (REPL).
 
<lang Quackery>/O> [ $ 'sundry/fsm.qky' loadfile ] now!
... [ dup
... [ $ 'the' buildfsm ] constant
... usefsm over found ] is contains-"the"
... []
... $ 'unixdict.txt' sharefile drop
... nest$ witheach
... [ dup size 12 < iff drop done
... contains-"the" iff [ nested join ]
... else drop ]
... 60 wrap$ cr
...
 
authenticate chemotherapy chrysanthemum clothesbrush
clotheshorse eratosthenes featherbedding featherbrain
featherweight gaithersburg hydrothermal lighthearted
mathematician neurasthenic nevertheless northeastern
northernmost otherworldly parasympathetic physiotherapist
physiotherapy psychotherapeutic psychotherapist
psychotherapy radiotherapy southeastern southernmost
theoretician weatherbeaten weatherproof weatherstrip
weatherstripping
 
Stack empty.</lang>
 
 
=={{header|Raku}}==
1,467

edits