Skip to content

Data Structures

Frederico Andrade edited this page Jul 27, 2016 · 5 revisions

#Foreword The moment we stop to consider more involved uses of the Poly app, one core question jumps out; Will language objects be grouped by name, or will each orthography for each language name exist as a separate object? To illustrate, imagine we have three books:

ID Source Language Target Language
1 English Portuguese
2 Português Inglês
3 日本語 英語

If searching the system for English, will only Book 1 be called?

Refer to the Search wiki for more information on search

#Objective It would be ideal to distinguish languages not by string name, but by language object id, allowing for multiple string names per language (as is the case in reality). Using ISO 639-3 IDs, languages are able to be distinguished with some confidence. To repeat the earlier illustration in this context, take the same three books, this time with ISO codes:

ID Source Language Target Language
1 English [eng] Portuguese [por]
2 Português [por] Inglês [eng]
3 日本語 [jpn] 英語 [eng]

Searching the system for [eng] now produces all books who's language names match with the ISO [eng], despite the language that the desired string is written in.

Clone this wiki locally