Fun With Dollar Words and Wolfram + ChatGPT
Fun With Dollar Words and Wolfram + ChatGPT
The Wolfram Plugin for ChatGPT does allow the dollar word problem to be tackled by the LLM:
This isn't the most sophisticated prompt, and so ChatGPT circles around a conclusion for a bit, but it does eventually "talk" itself into a list of 20 dollar words as asked:
In[]:=
candidateWords={"acclimation","accumulate","acknowledge","acquitted","adulthood","affectation","alienation","amiableness","analysis","annually","answerable","anterior","apoplectic","appertain","appointed","apropos","aquamarine","archdiocesan","asbestos","attitude"};Total@*LetterNumber/@candidateWords
Out[]=
{100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100}
If you "chat" a bit more with the LLM, in this case it used ToCharacterCode instead of LetterNumber, which is interesting. If you ask it to use LetterNumber, it is happy to do this as well. It's also able to write something quite similar to what a human might to find all the dollar words in English:
It's interesting to note it seems to use more of a procedural than functional style when writing code. It's possible to do this as a one-liner if desired. However, the comments are not bad from a teaching standpoint. Below is the code (with its own comments) produced by the plugin + LLM combo:
In[]:=
(*DefineafunctiontocalculatethevalueofawordincentsusingLetterNumber*)wordValueWithLetterNumber[word_String]:=Total[LetterNumber[word]];(*GetalistofEnglishwords*)englishWords=WordList[];(*Filterthelisttokeeponlydollarwords*)dollarWordsWithLetterNumber=Select[englishWords,wordValueWithLetterNumber[#]==100&];(*ThevariabledollarWordsWithLetterNumbernowcontainstheentirelistofdollarwords*)dollarWordsWithLetterNumber
Out[]=
{acclimation,accumulate,acknowledge,acquitted,adulthood,affectation,alienation,amiableness,analysis,annually,answerable,anterior,apoplectic,appertain,appointed,apropos,aquamarine,archdiocesan,asbestos,attitude,autoclave,automated,avocation,awfully,beetroot,benediction,bettering,bewitching,bipartite,birthmark,blissful,botanist,bouillon,boulevard,boundary,boycott,breviary,bronchus,browser,burnished,cacophony,candidature,cardiograph,carouser,carpenter,carroty,censurable,ceramicist,chastening,chimpanzee,chromium,clinically,clockwise,clotting,coatroom,collecting,cometary,companion,comport,concavely,condensate,confabulate,congenital,congress,conjoint,conjugated,conjunct,connivance,contented,cookout,corridor,costumed,couchette,coverlet,coyness,creosote,crudity,culture,curettage,cutout,cysteine,debarkation,declarative,declension,decorous,deliquesce,delivery,demobilize,demodulate,denominate,depletion,dewberry,diagonally,digestive,dinginess,disarranged,discernible,discipline,discommode,discredited,disjoint,dispraise,distrait,divinely,dooryard,doubleheader,drizzle,dumbfound,duologue,ebullient,egoistical,elsewhere,emasculate,embodiment,emendation,empathetic,encrust,epitaxy,espouse,eulogize,eventual,excellent,excoriate,falseness,fatalistic,fatherhood,ferryman,finitely,fluorine,flurry,forefoot,forewarn,forgiver,forsaking,fountain,frisson,gauntlet,geographer,gladiolus,glissando,glutamate,godparent,grandaunt,grappling,grouper,grumpy,harmonics,healthily,hemoglobin,hirsute,hobbyist,hollering,holograph,honeycomb,honoring,hospital,hotness,imbroglio,immature,impaction,imported,impotence,inadequacy,inapplicable,inefficient,inflation,ingrown,innately,innovate,inoculate,insecticide,intellect,interbreed,interfere,irritate,jailhouse,judiciary,kibitzer,knothole,landholding,landscaping,largeness,leveraging,liberalism,liberator,lightning,likelihood,limpidly,litotes,lubricant,macrocosm,magnetize,martinet,martingale,matchless,matchmaking,maximize,meatpacking,mercantile,mercurial,merganser,meridional,merrily,midpoint,mirrored,misdirect,missus,molecular,morphemic,moussaka,mummify,nastily,neoclassic,nestling,neuronal,nihilist,ninepins,nonhuman,nostalgic,notional,numeracy,nutty,obscenely,offhandedly,operetta,ornament,outflank,outlier,outlined,outrank,outset,overboard,palpitate,paramecium,pasture,pathless,personage,personal,perturb,phagocyte,phlebitis,pianistic,pilaster,pistachio,plastered,plebiscite,plummet,plummy,postdate,posting,postpaid,potbellied,pounding,pouring,prevent,primary,printer,producer,profuse,progeny,publicly,pumpkin,pursue,putter,pyridine,quadrangle,quarry,quarter,quicklime,radiocarbon,raillery,ravisher,receptor,reciprocal,redeploy,refinery,reflation,regimented,regroup,reimpose,renovate,repress,reprint,reprobate,reputable,reschedule,researcher,reshuffle,resolved,restore,retiring,reversal,riverbank,roadster,roomful,roommate,ruction,sagebrush,saintlike,saintly,salacious,savory,scoreboard,scrapbook,scrummage,sculpted,scuttle,selective,self-defense,semaphore,semitone,septicemia,services,session,shadowing,shakedown,shakeout,shattered,shibboleth,shipyard,shooter,shortcake,shrieking,sightly,simulate,sleepyhead,smitten,snobbery,socialism,soughing,sparkler,spirited,splashy,spyhole,squint,stagecraft,stalemated,starfish,starling,status,strangled,stress,striker,subsume,sucrose,surcharge,surely,sweetened,sweptback,swimmer,swollen,syndicate,tailspin,telephone,telescope,temperance,temporal,tensely,tetanus,thalidomide,therefore,thickening,thievish,thirty,thorny,threatened,thumbnail,tinkerer,towards,traction,trademarked,transect,transom,trembling,triplet,tropics,truism,tularemia,tuppence,turkey,turnoff,twisted,unaltered,unavailable,unbounded,unbridgeable,unbroken,uncombined,underdone,underlay,undress,unequaled,unfasten,unfreeze,unhorse,unkempt,unlighted,unmanly,unmatchable,unmodified,unrelated,unwearied,urbanized,urticaria,useless,utensil,variety,varnished,venation,verbalize,vinous,vouchsafe,waterbird,Wednesday,whenever,whirling,whiskey,wholesale,whooper,writing,yarrow}