New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

Wild Card [ * ? ] matching in search field

General discussion

Wild Card [ * ? ] matching in search field

Postby fast_rizwaan » Mon Mar 29, 2010 10:40 pm

let's say we are looking for words with has r et y -> starts with r, has et in between r and y, and ends with y

if we enter "r*et*y"; I presume we should get the following results:
---------
rackety
radial asymmetry
radial symmetry
red-letter day
regretfully
regrettably
repetitively
retaliatory
retentively
retentivity
reticently
retinopathy
retirement community
retributory
retroactively
retrospectively
retry
return key
revolutionary proletarian army
rhetorically
richard errett smalley
rickety
riemannian geometry
ringlet butterfly
rocketry
royal society
--------

which is like:
Code: Select all
cat wordlists/essential-wordnet-3-wordlist.txt |grep "^r.*et.*y$"


and I would like to have the ability to enter "a?e" to get these results
---------------
ace
ade
age
ale
ane
ape
are
ate
awe
axe
----------

Code: Select all
cat wordlists/essential-wordnet-3-wordlist.txt |grep "^a.e$"

in bash/grep/sed, "." (dot) is used as "?" single wild character! and ".*" (dot asterisk) as "*" any number of characters!

similarly entering "dict*" should get us:
----------------
dictamnus
dictamnus alba
dictaphone
dictate
dictated
dictation
dictator
dictatorial
dictatorially
dictatorship
diction
dictionary
dictionary definition
dictionary entry
dictostylium
dictum
dictyophera
dictyoptera
dictyopteran
dictyopterous insect
dictyosome
----------------

Code: Select all
cat wordlists/essential-wordnet-3-wordlist.txt |grep "^dict.*$"


and finally "*yist" should get me:
----------------
accompanyist
copyist
essayist
hobbyist
lobbyist
trotskyist
----------------
Code: Select all
cat wordlists/essential-wordnet-3-wordlist.txt |grep "^.*yist$"


----------------------------
Please try to implement "Wildcards" for better search capability. WordWeb32 pro has this feature.
Attachments
essential-wordlist.tar.zip
attaching the wordlist file for your experimentation. extract with
mv file.tar.zip file.tar.xz
tar -Jxvf file.tar.xz
(496.64 KiB) Downloaded 806 times
fast_rizwaan
 
Posts: 45
Joined: Tue Dec 08, 2009 5:10 pm

Re: Wild Card [ * ? ] matching in search field

Postby nonimporta » Fri Apr 16, 2010 8:03 pm

This is a feature I would very much like to see too! It's especially useful when listening to something and you didn't quite get the beginning of the word or whatnot

Btw. thank you for this awesome dictionary, you are doing a fantastic job
nonimporta
 
Posts: 1
Joined: Fri Apr 16, 2010 7:48 pm


Return to General

Who is online

Users browsing this forum: No registered users and 47 guests