Page MenuHomePhabricator

Example numbering for linguistics articles (feature request)
Open, Needs TriagePublic

Description

Hi! I was wondering if it would be possible to develop a tool for Wikipedia editing which allows (1) numbered lists whose numbering continues throughout the article and (2) an automated way of referring back to earlier examples.

This would be enormously useful for linguistics articles, and an editor at the help desk suggested that it could be useful for some math and science articles as well. Currently, linguistics articles format their examples in ugly and confusing ways, and many rely on text that breaks the fourth wall in order to achieve a minimum standard of clarity ("as we saw in the second sentence example under the third paragraph four subsections ago…") . My suggestion is that editors could write markup like this (or perhaps less cumbersome!):

Example <exref = “donkey” /> shows that donkey anaphora exists. Example <ex ref = “donkeyRC”> uses a relative clause, while Example <ex ref = “donkeyif /> uses a conditional.

  <ex name=“donkey” /> Donkey Anaphora:
     <subex name = “donkeyRC” />Every farmer who owns a donkey beats it.</subex>
     <subex name = “donkeyif” />If a farmer owns a donkey, he beats it.</subex>
  </ex>

Blah blah blah imagine this text runs for several paragraphs, perhaps with a section break in the middle. Now compare the pair shown in <ex ref = “donkey” /> to the completely unrelated ones in <exref = “kangaroo” />.

  <ex name=“kangaroo” /> Counterexample to Antecedent Strengthening:
     <subex name = “kangarootail” />If Kangaroos didn't have tails, they would topple over.</subex>
     <subex name = “kangaroojetpack” /> If Kangaroos didn't have tails, but did have jetpacks, they wouldn't topple over.</subex>
  </ex>

And this would show up as:

Example (1) shows that donkey anaphora exists. Example (1a) uses a relative clause, while Example (1b) uses a conditional.

(1) Donkey Anaphora:

a. Every farmer who owns a donkey beats it.
b. If a farmer owns a donkey, he beats it.

Blah blah blah imagine this text runs for several paragraphs, perhaps with a section break in the middle. Now compare the pair shown in (1) to the completely unrelated ones in (2).

(2) Counterexample to Antecedent Strengthening:

a. If Kangaroos didn't have tails, they would topple over.
b. If Kangaroos didn't have tails but did have jetpacks, they wouldn't topple over

Crucially, the numbers would all update consistently if the page is edited to change the order of the examples, or to stick in intervening examples. I imagine that something like this could be built based on whatever currently handles reference numbering, and if any further inspiration is needed, various LaTeX packages (e.g. linguex) have this functionality.

Event Timeline

Can I bump this request? If so, I hereby bump it.

Can I bump this again? I know there's a long backlog of tasks but this tool would be extremely useful for spiffing up some Wikipedia articles I'm working on.

I'd just like to second this request, as someone who has also edited in the space of linguistics articles and been frustrated by this gap in functionality.