xigt / xigt

eXtensible Interlinear Glossed Text
http://depts.washington.edu/uwcl/xigt
MIT License
31 stars 9 forks source link

Autogenerate `id` on objects when not given #38

Open goodmami opened 8 years ago

goodmami commented 8 years ago

When adding new elements to some container, it may be best to just auto-generate IDs, rather than just requiring IDs for some kinds of objects. If an ID is given, it will be checked for uniqueness. Otherwise, it will be auto-generated following to-be-coded conventions (mostly described here: https://github.com/xigt/xigt/wiki/Conventions#id-naming)

Old issue text:

Igt objects can be "anonymous" by not specifying an id attribute, but this is probably not a good idea, since some applications may need Igt IDs to work.

I still think it is not the case that XigtCorpora need IDs specified, and perhaps nor do Tiers or Items as long as they aren't involved in reference relationships, although really it's best if all things specify IDs.