In recognising the language of a text, spoken or written, have current algorithms or implementations incorporated ISO 639 codes and/or other standards?
For example, I'd like to decide the language of a text, but map the text directly to an ISO 639 code. Is it currently possible?
If yes, how is this implemented? I can guess that this would require that either ISO 639 specify ways on how to decide whether a text belongs to a language code, or the registrars of ISO 639 keep adequate samples of each language code. However, from my current understanding (I may be wrong because I have no direct access to the standard), these aren’t true.
Or are there others ISO or other organisations' standards that deal with this issue directly?