My question essentially boils down to the following: Is it always possible to assign a (regular / irregular) reading to a single kanji within some word? It is related to this post: Kanji that don't use their specified readings:
The context is somewhat technical: I'm writing software that should map a kanji to its reading within a certain expression. I'd like to collect all irregular readings for the kanji and want to know, which irregularities are most common. I'm using a database of all official on/kun-readings and Jim Breen's dictionary and for this: For each of its ~190.000 entries, I try to match the native (kanji) expression character-wise to its reading defined in the dictionary. I reuse all irregular readings that could be uniquely determined (i.e. if a single kanji remains unresolved in an expression, I use the remaining reading part as irregular reading for this kanji. E.g. お兄さん -> 兄's reading in this case is にい). I'm not sure, if this is always correct though, here are some examples:
今日 -> きょう (is 今[きょ]日[う] correct?)
明日 -> あした (is 明[あ]日[した]correct?)
越幾斯 -> えきす (is 越[え]幾[き]斯[す] correct?)
Around 300 (exotic?) entries remain, where it is not possible to uniquely determine the reading of each kanji. How about the following exemplary ones:
七週の祭 -> ななまわりのいわい
海月 -> くらげ
Do these ones have to be learned as a compound? Thanks in advance for your help!