You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>As with the rest of the web platform, human languages are identified in these APIs by BCP 47 language tags, such as "<code>ja</code>", "<code>en-US</code>", "<code>sr-Cyrl</code>", or "<code>de-CH-1901-x-phonebk-extended</code>". The specific algorithms used for validation, canonicalization, and language tag matching are those from the <cite>ECMAScript Internationalization API Specification</cite>, which in turn defers some of its processing to <cite>Unicode Locale Data Markup Language (LDML)</cite>. <adata-link-type="biblio" href="#biblio-bcp47" title="Tags for Identifying Languages">[BCP47]</a><adata-link-type="biblio" href="#biblio-ecma-402" title="ECMAScript Internationalization API Specification">[ECMA-402]</a><adata-link-type="biblio" href="#biblio-uts35" title="Unicode Locale Data Markup Language (LDML)">[UTS35]</a>.</p>
822
822
<p>These APIs are part of a family of APIs expected to be powered by machine learning models, which share common API surface idioms and specification patterns. Currently, the specification text for these shared parts lives in <ahref="https://webmachinelearning.github.io/writing-assistance-apis/#supporting"><cite>Writing Assistance APIs</cite> § 5 Shared infrastructure</a>, and the common privacy and security considerations are discussed in <ahref="https://webmachinelearning.github.io/writing-assistance-apis/#privacy"><cite>Writing Assistance APIs</cite> § 6 Privacy considerations</a> and <ahref="https://webmachinelearning.github.io/writing-assistance-apis/#security"><cite>Writing Assistance APIs</cite> § 7 Security considerations</a>. Implementing these APIs requires implementing that shared infrastructure, and conforming to those privacy and security considerations. But it does not require implementing or exposing the actual writing assistance APIs. <adata-link-type="biblio" href="#biblio-writing-assistance-apis" title="Writing Assistance APIs">[WRITING-ASSISTANCE-APIS]</a></p>
<p>Please see <ahref="https://webmachinelearning.github.io/writing-assistance-apis/#security"><cite>Writing Assistance APIs</cite> § 7 Security considerations</a> for a discussion of security considerations for the prompt API. That text was written to apply to all APIs sharing the same infrastructure, as noted in <ahref="#dependencies">§ 2 Dependencies</a>.</p>
<h3class="no-num no-ref heading settled" id="index-defined-here"><spanclass="content">Terms defined by this specification</span><aclass="self-link" href="#index-defined-here"></a></h3>
<h3class="heading no-num no-ref settled" id="index-defined-here"><spanclass="content">Terms defined by this specification</span><aclass="self-link" href="#index-defined-here"></a></h3>
1090
1090
<ulclass="index">
1091
1091
<li><ahref="#dom-languagemodel-append">append(input)</a><span>, in § 3</span>
1092
1092
<li><ahref="#dom-languagemodel-append">append(input, options)</a><span>, in § 3</span>
<li><ahref="#validate-and-canonicalize-a-prompt">validate and canonicalize a prompt</a><span>, in § 3.1</span>
1179
1179
<li><ahref="#dom-languagemodelmessagecontent-value">value</a><span>, in § 3</span>
1180
1180
</ul>
1181
-
<h3class="no-num no-ref heading settled" id="index-defined-elsewhere"><spanclass="content">Terms defined by reference</span><aclass="self-link" href="#index-defined-elsewhere"></a></h3>
1181
+
<h3class="heading no-num no-ref settled" id="index-defined-elsewhere"><spanclass="content">Terms defined by reference</span><aclass="self-link" href="#index-defined-elsewhere"></a></h3>
1182
1182
<ulclass="index">
1183
1183
<li>
1184
1184
<adata-link-type="biblio">[DOM]</a> defines the following terms:
<dd>Anne van Kesteren. <ahref="https://dom.spec.whatwg.org/"><cite>DOM Standard</cite></a>. Living Standard. URL: <ahref="https://dom.spec.whatwg.org/">https://dom.spec.whatwg.org/</a>
<dd><ahref="https://webmachinelearning.github.io/writing-assistance-apis/"><cite>Writing Assistance APIs</cite></a>. Draft Community Group Report. URL: <ahref="https://webmachinelearning.github.io/writing-assistance-apis/">https://webmachinelearning.github.io/writing-assistance-apis/</a>
<dd>A. Phillips, Ed.; M. Davis, Ed.. <ahref="https://www.rfc-editor.org/rfc/rfc5646"><cite>Tags for Identifying Languages</cite></a>. September 2009. Best Current Practice. URL: <ahref="https://www.rfc-editor.org/rfc/rfc5646">https://www.rfc-editor.org/rfc/rfc5646</a>
1285
1285
<dtid="biblio-uts35">[UTS35]
1286
1286
<dd>Mark Davis; et al. <ahref="https://www.unicode.org/reports/tr35/tr35-61/tr35.html"><cite>Unicode Locale Data Markup Language (LDML)</cite></a>. 23 October 2020. Unicode Technical Standard #35. URL: <ahref="https://www.unicode.org/reports/tr35/tr35-61/tr35.html">https://www.unicode.org/reports/tr35/tr35-61/tr35.html</a>
0 commit comments