Contact emailsdome...@chromium.org, fer...@chromium.org,
kenjibah...@chromium.org

Explainerhttps://github.com/WICG/translation-api/blob/main/README.md

(This explainer bundles together the translator API and the language
detector API, since they are very related. This Intent is only for the
language detector API.)

SpecificationNone yet, although we're excited to start writing one during
the trial.

Summary

A JavaScript API for detecting the language of text, with confidence levels.

Blink componentBlink>AI>Language Detection
<https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EAI%3ELanguage%20Detection>

TAG reviewhttps://github.com/w3ctag/design-reviews/issues/948

TAG review statusIssues open: "satisfied with concerns", mainly around
naming.

Risks


Interoperability and Compatibility

This feature, like all built-in AI features, has inherent interoperability
risks due to the use of AI models whose behavior is not fully specified.
See some general discussion in
https://www.w3.org/reports/ai-web-impact/#interop. By providing a
high-level API with clear output formats, as well as a capabilities API for
detecting what a given browser supports, we believe we can guide web
developers toward using the API in an interoperable way that does not
depend on the specific models that a given browser or browser version uses.


*Gecko*: No signal (
https://github.com/mozilla/standards-positions/issues/1015)

*WebKit*: No signal (
https://github.com/WebKit/standards-positions/issues/339)

*Web developers*: Positive (https://github.com/WICG/proposals/issues/147)

*Other signals*:

Ergonomics

This API will likely frequently be used in concert with the translator API (
https://chromestatus.com/feature/5172811302961152). Our current
implementation is tied up with the browser's built-in language detection,
which runs on the main thread. Alternative architectures are possible and
we're exploring the implications of the current one through the origin
trial process.


Activation

This feature would definitely benefit from having polyfills, backed by any
of: cloud services, lazily-loaded on-device models using WebGPU, or the web
developer's own server. We anticipate seeing an ecosystem of such polyfills
grow as more developers experiment with this API.


WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that
it has potentially high risk for Android WebView-based applications?

None


Goals for experimentation

Our main goal for the origin trial is to get feedback on model quality and
performance when faced with real-world use cases from developers. For
example, we are interested in how often multilingual input is provided and
what developers expect for such cases (
https://github.com/WICG/translation-api/issues/13).

We also expect to get some feedback on the API shape (which will likely
evolve throughout the trial), and how limiting the current architecture's
ability to only run after page load is.

Ongoing technical constraints

None.

Debuggability

Basic tooling suffices

Will this feature be supported on all six Blink platforms (Windows, Mac,
Linux, ChromeOS, Android, and Android WebView)?Yes

Is this feature fully tested by web-platform-tests
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>
?No.


We hope to work on web platform tests for this feature, but how much we can
guarantee as testable beyond the surface API is unclear. For example, since
no specific languages are guaranteed to be supported, it's not clear we can
actually test language detection. APIs to mock the results might help here.


Flag name on chrome://flagslanguage-detection-api

Finch feature nameLanguageDetectionAPI

Requires code in //chrome?False

MeasurementkV8LanguageDetector_Detect_Method

Estimated milestones

We may shift these milestones back to 130-135 depending on engineering
bandwidth. If so, we will update the Chrome Platform Status entry.

Origin trial desktop first 129
Origin trial desktop last 134
Origin trial Android first 129
Origin trial Android last 134
Origin trial WebView first 129
Origin trial WebView last 134

Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/6494349985841152?gate=6142474019143680

Links to previous Intent discussionsIntent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/Ie46tc6_8so/m/eY1huFmOAAAJ


This intent message was generated by Chrome Platform Status
<https://chromestatus.com/>.

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAM0wra-WvH-sxxWndwAWPLF3eEYqeLhXrz-VmZKH4Wxzbpse-Q%40mail.gmail.com.

Reply via email to