Jump to content

Change e letters to i in words: Difference between revisions

m (→‎{{header|Phix}}: use unix_dict())
Line 877:
26: welles -> willis
</pre>
 
=={{header|jq}}==
{{works with|jq}}
'''Works with gojq, the Go implementation of jq'''
<lang jq>
def e2i($dict):
select(index("e"))
| gsub("e";"i")
| select($dict[.]);
INDEX( inputs; . )
| . as $dict
| keys[] # keys_unsorted[]
| select(length>6)
| . as $w
| e2i($dict)
| "\($w) → \(.)"
</lang>
Invocation: jq -n -rR -f e2i.jq unixdict.txt
{{out}}
<pre>
analyses → analysis
atlantes → atlantis
convect → convict
diagnoses → diagnosis
enquiry → inquiry
frances → francis
galatea → galatia
heckman → hickman
inequity → iniquity
inflect → inflict
jacobean → jacobian
pegging → pigging
psychoses → psychosis
sterling → stirling
synopses → synopsis
</pre>
 
 
=={{header|Julia}}==
2,465

edits

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