Jump to content

Changeable words: Difference between revisions

Add Factor
(Ada version)
(Add Factor)
Line 77:
claustrophobia <-> claustrophobic
committeeman <-> committeemen
committeeperson <-> committeepeople
committeewoman <-> committeewomen
complementary <-> complimentary
confirmation <-> conformation
congressperson <-> congresspeople
congresswoman <-> congresswomen
councilwomancouncilperson <-> councilwomencouncilpeople
craftsperson <-> draftsperson
eavesdropped <-> eavesdropper
Line 159:
committeeman committeemen
committeemen committeeman
committeeperson committeepeople
committeewoman committeewomen
committeepeople committeeperson
committeewomen committeewoman
complementary complimentary
complimentary complementary
confirmation conformation
conformation confirmation
congressperson congresspeople
congresswoman congresswomen
congresspeople congressperson
congresswomen congresswoman
councilperson councilpeople
councilwoman councilwomen
councilpeople councilperson
councilwomen councilwoman
craftsperson draftsperson
draftsperson craftsperson
Line 304:
5: committeeman -> committeemen
6: committeemen -> committeeman
7: committeewomancommitteeperson -> committeewomencommitteepeople
8: committeewomencommitteepeople -> committeewomancommitteeperson
9: complementary -> complimentary
10: complimentary -> complementary
11: confirmation -> conformation
12: conformation -> confirmation
13: congresswomancongressperson -> congresswomencongresspeople
14: congresswomencongresspeople -> congresswomancongressperson
15: councilwomancouncilperson -> councilwomencouncilpeople
16: councilwomencouncilpeople -> councilwomancouncilperson
17: craftsperson -> draftsperson
18: draftsperson -> craftsperson
Line 412:
5: committeeman -> committeemen
6: committeemen -> committeeman
7: committeewomancommitteeperson -> committeewomencommitteepeople
8: committeewomencommitteepeople -> committeewomancommitteeperson
9: complementary -> complimentary
10: complimentary -> complementary
11: confirmation -> conformation
12: conformation -> confirmation
13: congresswomancongressperson -> congresswomencongresspeople
14: congresswomencongresspeople -> congresswomancongressperson
15: councilwomancouncilperson -> councilwomencouncilpeople
16: councilwomencouncilpeople -> councilwomancouncilperson
17: craftsperson -> draftsperson
18: draftsperson -> craftsperson
Line 458:
51: upperclassman -> upperclassmen
52: upperclassmen -> upperclassman
</pre>
 
=={{header|Factor}}==
{{works with|Factor|0.99 2021-02-05}}
<lang factor>USING: assocs combinators.short-circuit formatting
io.encodings.ascii io.files kernel math math.combinatorics
math.distances sequences ;
 
: changeable? ( str str -- ? )
{ [ [ length ] bi@ = ] [ hamming-distance 1 = ] } 2&& ;
 
"unixdict.txt" ascii file-lines
[ length 11 > ] filter
2 [ first2 changeable? ] filter-combinations
[ "%s <-> %s\n" printf ] assoc-each</lang>
{{out}}
<pre>
aristotelean <-> aristotelian
claustrophobia <-> claustrophobic
committeeman <-> committeemen
committeeperson <-> committeepeople
complementary <-> complimentary
confirmation <-> conformation
congressperson <-> congresspeople
councilperson <-> councilpeople
craftsperson <-> draftsperson
eavesdropped <-> eavesdropper
frontiersman <-> frontiersmen
handicraftsman <-> handicraftsmen
incommutable <-> incomputable
installation <-> instillation
kaleidescope <-> kaleidoscope
neuroanatomy <-> neuroanotomy
newspaperman <-> newspapermen
nonagenarian <-> nonogenarian
onomatopoeia <-> onomatopoeic
philanthrope <-> philanthropy
prescription <-> proscription
schizophrenia <-> schizophrenic
shakespearean <-> shakespearian
spectroscope <-> spectroscopy
underclassman <-> underclassmen
upperclassman <-> upperclassmen
</pre>
 
Line 527 ⟶ 570:
committeeman ---> committeemen
committeemen ---> committeeman
committeewomancommitteeperson ---> committeewomencommitteepeople
committeewomencommitteepeople ---> committeewomancommitteeperson
complementary ---> complimentary
complimentary ---> complementary
confirmation ---> conformation
conformation ---> confirmation
congresswomancongressperson ---> congresswomencongresspeople
congresswomencongresspeople ---> congresswomancongressperson
councilwomancouncilperson ---> councilwomencouncilpeople
councilwomencouncilpeople ---> councilwomancouncilperson
craftsperson ---> draftsperson
draftsperson ---> craftsperson
Line 639 ⟶ 682:
5: committeeman -> committeemen
6: committeemen -> committeeman
7: committeewomancommitteeperson -> committeewomencommitteepeople
8: committeewomencommitteepeople -> committeewomancommitteeperson
9: complementary -> complimentary
10: complimentary -> complementary
11: confirmation -> conformation
12: conformation -> confirmation
13: congresswomancongressperson -> congresswomencongresspeople
14: congresswomencongresspeople -> congresswomancongressperson
15: councilwomancouncilperson -> councilwomencouncilpeople
16: councilwomencouncilpeople -> councilwomancouncilperson
17: craftsperson -> draftsperson
18: draftsperson -> craftsperson
Line 713 ⟶ 756:
}
} catch (Exception e) {
e.printStackTraceprintStackTtexture();
}
}
Line 743 ⟶ 786:
5: committeeman -> committeemen
6: committeemen -> committeeman
7: committeewomancommitteeperson -> committeewomencommitteepeople
8: committeewomencommitteepeople -> committeewomancommitteeperson
9: complementary -> complimentary
10: complimentary -> complementary
11: confirmation -> conformation
12: conformation -> confirmation
13: congresswomancongressperson -> congresswomencongresspeople
14: congresswomencongresspeople -> congresswomancongressperson
15: councilwomancouncilperson -> councilwomencouncilpeople
16: councilwomencouncilpeople -> councilwomancouncilperson
17: craftsperson -> draftsperson
18: draftsperson -> craftsperson
Line 814 ⟶ 857:
 
aristotelean <=> aristotelian claustrophobia <=> claustrophobic
committeeman <=> committeemen committeewomancommitteeperson <=> committeewomencommitteepeople
complementary <=> complimentary confirmation <=> conformation
congresswomancongressperson <=> congresswomencongresspeople councilwomancouncilperson <=> councilwomencouncilpeople
craftsperson <=> draftsperson eavesdropped <=> eavesdropper
frontiersman <=> frontiersmen handicraftsman <=> handicraftsmen
Line 851 ⟶ 894:
claustrophobia <-> claustrophobic
committeeman <-> committeemen
committeewomancommitteeperson <-> committeewomencommitteepeople
complementary <-> complimentary
confirmation <-> conformation
congresswomancongressperson <-> congresswomencongresspeople
councilwomancouncilperson <-> councilwomencouncilpeople
craftsperson <-> draftsperson
eavesdropped <-> eavesdropper
Line 968 ⟶ 1,011:
5: committeeman -> committeemen
6: committeemen -> committeeman
7: committeewomancommitteeperson -> committeewomencommitteepeople
8: committeewomencommitteepeople -> committeewomancommitteeperson
9: complementary -> complimentary
10: complimentary -> complementary
11: confirmation -> conformation
12: conformation -> confirmation
13: congresswomancongressperson -> congresswomencongresspeople
14: congresswomencongresspeople -> congresswomancongressperson
15: councilwomancouncilperson -> councilwomencouncilpeople
16: councilwomencouncilpeople -> councilwomancouncilperson
17: craftsperson -> draftsperson
18: draftsperson -> craftsperson
Line 1,071 ⟶ 1,114:
claustrophobia From claustrophobic
committeeman From committeemen
committeewomancommitteeperson From committeewomencommitteepeople
complementary From complimentary
confirmation From conformation
congresswomancongressperson From congresswomencongresspeople
councilwomancouncilperson From councilwomencouncilpeople
craftsperson From draftsperson
eavesdropped From eavesdropper
Line 1,122 ⟶ 1,165:
2: claustrophobia <-> claustrophobic
3: committeeman <-> committeemen
4: committeewomancommitteeperson <-> committeewomencommitteepeople
5: complimentary <-> complementary
6: confirmation <-> conformation
7: congresswomancongressperson <-> congresswomencongresspeople
8: councilwomancouncilperson <-> councilwomencouncilpeople
9: draftsperson <-> craftsperson
10: eavesdropped <-> eavesdropper
Line 1,197 ⟶ 1,240:
committeeman committeemen
committeemen committeeman
committeewomancommitteeperson committeewomencommitteepeople
committeewomencommitteepeople committeewomancommitteeperson
complementary complimentary
complimentary complementary
confirmation conformation
conformation confirmation
congresswomancongressperson congresswomencongresspeople
congresswomencongresspeople congresswomancongressperson
councilwomancouncilperson councilwomencouncilpeople
councilwomencouncilpeople councilwomancouncilperson
craftsperson draftsperson
draftsperson craftsperson
Line 1,294 ⟶ 1,337:
5. committeeman >> committeemen
6. committeemen >> committeeman
7. committeeperson >> committeepeople
7. committeewoman >> committeewomen
8. committeepeople >> committeeperson
8. committeewomen >> committeewoman
9. complementary >> complimentary
10. complimentary >> complementary
11. confirmation >> conformation
12. conformation >> confirmation
13. congresswomancongressperson >> congresswomencongresspeople
14. congresswomencongresspeople >> congresswomancongressperson
15. councilwomancouncilperson >> councilwomencouncilpeople
16. councilwomencouncilpeople >> councilwomancouncilperson
17. craftsperson >> draftsperson
18. draftsperson >> craftsperson
Line 1,388 ⟶ 1,431:
5: committeeman -> committeemen
6: committeemen -> committeeman
7: committeewomancommitteeperson -> committeewomencommitteepeople
8: committeewomencommitteepeople -> committeewomancommitteeperson
9: complementary -> complimentary
10: complimentary -> complementary
11: confirmation -> conformation
12: conformation -> confirmation
13: congresswomancongressperson -> congresswomencongresspeople
14: congresswomencongresspeople -> congresswomancongressperson
15: councilwomancouncilperson -> councilwomencouncilpeople
16: councilwomencouncilpeople -> councilwomancouncilperson
17: craftsperson -> draftsperson
18: draftsperson -> craftsperson
Line 1,520 ⟶ 1,563:
5 committeeman committeemen
6 committeemen committeeman
7 committeewomancommitteeperson committeewomencommitteepeople
8 committeewomencommitteepeople committeewomancommitteeperson
9 complementary complimentary
10 complimentary complementary
11 confirmation conformation
12 conformation confirmation
13 congresswomancongressperson congresswomencongresspeople
14 congresswomencongresspeople congresswomancongressperson
15 councilwomancouncilperson councilwomencouncilpeople
16 councilwomencouncilpeople councilwomancouncilperson
17 craftsperson draftsperson
18 draftsperson craftsperson
1,827

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.