Talk:Changeable words

From Rosetta Code
Revision as of 14:45, 15 December 2020 by rosettacode>Gerard Schildberger (added whitespace.)

Duplicate task

This task is a less sophisticated version of https://rosettacode.org/wiki/Text_completion. --Chunes (talk) 01:07, 6 December 2020 (UTC)

Could you expand on what/how it is a duplicate? Normally we try to not have "duplicate" tasks on RC. --Paddy3118 (talk) 13:51, 7 December 2020 (UTC)


Misspelling?

Two of the best online dictionaries, Collins, and Merriam-Webster don't have changeable without the first e. They do however have it with the e here and here. Several other sites rank "changable" as a common misspelling. Lets not perpetuate that on RC.

Since the spelling is made a point of, we should stick with the preferred spelling in the task name and description. --Paddy3118 (talk) 08:57, 7 December 2020 (UTC)

P.S. The misspelling isn't in unixdict.txt either. --Paddy3118 (talk) 09:06, 7 December 2020 (UTC)


Varying answers

Does that wordlist change? There are answers with 52, 54 and others with far less than 50 word pairs found? --Paddy3118 (talk) 12:13, 15 December 2020 (UTC)

One reason is that at least one of the computer programming entries (Python) used a minimum length of   11   instead of   12.       (With a minimum length of 11,   there are 108 changeable words.)   -- Gerard Schildberger (talk) 13:00, 15 December 2020 (UTC)
This is one reason that I suggested (elsewhere) that a summary count be provided at the end of the list to save people counting up the words in the output.   Also suggested was to have a count of words found in the dictionary   (and which dictionary is being used, i.e., the filename of the dictionary).   My points were not well received.     -- Gerard Schildberger (talk) 13:00, 15 December 2020 (UTC)
I had read '>11' as '>=11' in the Python entry and now get 26 words from swapping one char for another and 6 words from removing a char as another interpretation of changing a char in a word. Thanks.
The task specifies the directory (which I downloaded). I provide counts, but I agree that the task might suggest that solutions do so, (as others do too).
--Paddy3118 (talk) 14:28, 15 December 2020 (UTC)


task requirement wording

I would re-word the task's requirements as:


Using the dictionary   unixdict.txt,   change one letter in a word   (to different letter),   and if the changed word occurs in the dictionary,
then display the original word   and   the changed word here (on this page).

Also, provide of summary count of words changed that yielded another (changed) word.

Optional:   show the name (filename) of the dictionary being used as well as a count of words found (read) in that dictionary.

-- Gerard Schildberger (talk) 14:40, 15 December 2020 (UTC)