Dictionary scan demo - Words with 3 doublets

[Home]   [Puzzles & Projects]    [Delphi Techniques]   [Math topics]   [Library]   [Utilities]




Search WWW

Search DelphiForFun.org

As of October, 2016, Embarcadero is offering a free release of Delphi (Delphi 10.1 Berlin Starter Edition ).     There are a few restrictions, but it is a welcome step toward making more programmers aware of the joys of Delphi.  They do say "Offer may be withdrawn at any time", so don't delay if you want to check it out.  Please use the feedback link to let me know if the link stops working.


Support DFF - Shop

 If you shop at Amazon anyway,  consider using this link. 


We receive a few cents from each purchase.  Thanks


Support DFF - Donate

 If you benefit from the website,  in terms of knowledge, entertainment value, or something otherwise useful, consider making a donation via PayPal  to help defray the costs.  (No PayPal account necessary to donate via credit card.)  Transaction is secure.

Mensa Daily Puzzlers

For over 15 years Mensa Page-A-Day calendars have provided several puzzles a year for my programming pleasure.  Coding "solvers" is most fun, but many programs also allow user solving, convenient for "fill in the blanks" type.  Below are Amazon  links to the two most recent years.

Mensa 365 Puzzlers  Calendar 2017

Mensa 365 Puzzlers Calendar 2018

(Hint: If you can wait, current year calendars are usually on sale in January.)


Feedback:  Send an e-mail with your comments about this program (or anything else).

Search DelphiForFun.org only





Here is a simple program which demonstrates how to scan words in a dictionary. 

It solves a recent CarTalk puzzler:

There is only one word in the English language which contains 3 consecutive
sets of double letters. What is the word?

This program contains about 35 lines of user written code and took about 15 minutes to write in Delphi.  (Not including the few hours it is taking to document and publish the code :>).

The program uses our TDict dictionary class to search for the word in our 50,000 word dictionary (Full,dic). In fact, it lists all words with 3 sets of double letters and flags the one where the 3 sets are all adjacent.   For simplicity, I have included both the UDict file containing the TDict class and the dictionary in the source code zip file below.  I have also included an executable zip download with the dictionary for non-programmers who are just curious about the word.   Programmer's looking for more extensive samples should visit Wordstuff page for additional programs, dictionaries, and information about downloading UDict as contained in our DFF library file.

Download source code

Download executable


Created: July 2, 2007

Modified: May 12, 2018




  [Feedback]   [Newsletters (subscribe/view)] [About me]
Copyright 2000-2018, Gary Darby    All rights reserved.