Since I've been musing about fiction recently, here's another thought that crossed my mind.
Fantasy fiction often has a magic system involving spells cast in spoken language. But what language? Why does that language work and not another? Or would another language work? Would it depend on the spell? On the caster? On the location? It seems to me that there are quite a few plausible ‘cosmologies of magic’ which would cause different answers to those questions, many of which have specific examples in existing fiction, and I wonder if there are any more I've missed out.
A special Language Of Magic embedded in the universe. In this model, there is some particular language (or language-
Magic consists of asking a powerful entity to do something. In this model, a ‘spell’ is nothing more than a particular kind of request or prayer. So you must use whatever language is acceptable to the entity you're entreating to help you. (Though in some cases it might speak all languages, and not care.) Examples: David Eddings's ‘Elenium’, Katharine Kerr's Deverry novels, and surely a great many examples involving summoning of demons.
Magic words are just a way to get into the right kind of concentration. In this model, the real means of casting the spell is just a matter of being in the right frame of mind; the act of mumbling strange words is indirectly helpful in achieving that frame of mind, but not directly relevant to the spell working. So here the language you use for magic is a property of the caster, not of the spell or the universe: different casters will quite likely find that different languages (or plausible-
Magic depends on the intent behind your speech, not the words themselves. In this model, it doesn't matter what language you use, but you do have to speak something in your chosen language that you recognise as a meaningful expression of your magical intent. I can't think of an example in which this is specifically stated in the text, but I always have the impression that Neil Gaiman's magic for one gravitates towards this mode; I think it's a natural sort of model to be implicitly intended by authors who didn't care very much about this sort of detail.
Magic words are totally at the whim of the caster. It doesn't matter a bit what language or word you choose, but for some reason there has to be a word. Pick anything you like and it'll work just as well. Examples: David Eddings's Belgariad.
Magic is a function of large numbers of people. In this model, words become magical by virtue of lots of people using them, or caring about them, or believing in them, or similar. So the language of magic is not an inherent property of the universe itself, but neither is it completely up to the caster to choose it: instead, it's determined by the population who gave rise to the magic, and you might find that different languages or wordings are needed in different localities with different supporting populations. Examples: Kate Griffin's series of Matthew Swift books, and the Artifice in Juliet E. McKenna's Einarinn books.
Magic spells are originated by specific people. In this model, every spell works by virtue of some originating mage in the past having created it somehow (presumably using some deeper order of underlying meta-
The author never bothered to work it out, or wanted to keep the magic mysterious. Of course there has to be one Doylist explanation in this list, to go alongside all the Watsonian ones. Sometimes the nature of magic and its relationship to language just didn't strike the author as an important aspect of the story, or they felt it would have specifically gone against what they were trying to achieve with having magic rather than technology in their universe in the first place. Examples: Lord of the Rings (‘naur an edraith ammen!’), and surely many universes in which magicians are simply described as ‘incanting a spell’ or similar, without it ever being mentioned what words are being used.
So, what have I missed?
http://hpmor.com/chapter/6
http://hpmor.com/chapter/25
(On which subject I also have to give a shout out to ho for hoggwarts!, for its perfect fusion of the HP spell schema with Molesworth. "But surely sir lumos hav a greek nom. ending whereas the root come from lat. lumen luminis a lite as any fule kno?")
I see that chapter 25 suggests some counterarguments, but then, its version of the concept is more mechanistic than mine was anyway...
Specifically, Harry finds some spells which are easy to cast but Hermione doesn't already know (from a joke book), and describes them to her. If he gives her the instructions, but she doesn't know at all what the spell is for, it doesn't work. If he gives her the wrong instructions, nothing happens at all. If he gives her the instructions very slightly distorted, she gets a spell which partly works. If he gives her the instructions correctly, and an inaccurate description of what it does, it works perfectly the way it's supposed to.
What I think is interesting, is that that description is pretty close to how it works in the books. (I don't think the books stick to it perfectly.) But I doubt JKR thought it through like that: that's just how you'd EXPECT magic to work. Enough to predict the outcome, even if it depends on woolly concepts like what someone "expects" to happen. But not enough to formulate a law of physics about it.
(continued in response to main post)