Leading "The" was Re: "Popular Dances" [Spelling of Deil]

Anselm Lingnau

Message 52291 · 30 Apr 2008 12:46:20 · Variable-width font · Whole thread

Previous message: Leading "The" was Re: "Popular Dances" [Spelling of Deil] (Andrew Smith)
Next message: OffTopic Help needed from UK-resident... (Breest, Anja)
Previous in thread: Leading "The" was Re: "Popular Dances" [Spelling of Deil] (Andrew Smith)
Next in thread: Leading "The" was Re: "Popular Dances" [Spelling of Deil] (Mike Briggs)

Alasdair Graham wrote:

> The missing "The" has arisen as a result of indexing and database design
> problems.
> When searching for any particular dance you invariable get a "no trace" if
> you include the leading "The" etc.
> Most dance programs now do not include "the" in the name of a dance.
> It does seem redundant to write it as "Deil Amang the Tailors, The".

DanceData does store names with leading articles such as »The« or »A« as »Reel
of the Royal Scots, The« or »Trip to Bavaria, A« -- but the Web front-end
takes pains to put these articles back to the front where they belong to make
things look nicer.

Prompted by Alasdair's complaint above, I have just now written and committed
a five-line change to the DanceData web front-end that, if a query for a
pattern such as »The Reel« does not turn up any results, the query is retried
as »Reel.*, The« (aficionados of »regular expressions« will note that this
matches any dance whose name starts with »Reel« and finishes with », The«).
So where, if you were to enter »The Deil« in the query box, up until ten
minutes ago you would have got no results at all, you will now get two. This
works for »The«, »A«, »Le«, »La«, and »Da« (for the Shetlanders among us),
and I am happy to entertain suggestions as to how this list might be made
more complete.

Incidentally, I'm always open to suggestions regarding improvements to
DanceData, especially if they can be implemented in ten minutes using five
lines of code (which of course is something I can only decide on the basis of
actually knowing about the suggestions first).

Also incidentally, if you're not sure about the apostrophe in »Deil«
versus »De'il«, try querying for »Deil|De'il«, where the vertical bar
separates the two alternatives. (If you're into regular expressions,
yes, »De'?il« should also work but for some reason jumps directly to a dance
called »XYZZY«. This will need looked into at some point. »De'*il« is fine
even though it would also match oddities like »De''''''il« which don't seem
to occur in real life, and »De'{0,1}« is fine, too, so the question mark is
probably the culprit somehow ...)

Anselm
--
Anselm Lingnau, Friedberg, Germany ..................... xxxxxx@xxxxxxxxxx.xxx
Democracy is the recurrent suspicion that more than half of the people are
right more than half the time. -- E. B. White

Previous message: Leading "The" was Re: "Popular Dances" [Spelling of Deil] (Andrew Smith)
Next message: OffTopic Help needed from UK-resident... (Breest, Anja)
Previous in thread: Leading "The" was Re: "Popular Dances" [Spelling of Deil] (Andrew Smith)
Next in thread: Leading "The" was Re: "Popular Dances" [Spelling of Deil] (Mike Briggs)
A Django site.