Skip to content

Fix typos #39658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 24, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix more
  • Loading branch information
Josh-Cena committed May 24, 2025
commit 25a6e4efa3c9cf7657629e8294b7da2454a57225
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ This table details all the keys you can include.

## Load order

Registered objects in `content_scripts` are injected into matching web pages at the time specified by `run_at` (first `document_start`, then`document_end`, and finally `document_idle`):
Registered objects in `content_scripts` are injected into matching web pages at the time specified by `run_at` (first `document_start`, then `document_end`, and finally `document_idle`):

- In the order specified in the `content_scripts` array, for each object with a matching `run_at` value, then:
- CSS is applied in the order specified in its `css` array.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Summarizer.availability(options)
- `expectedInputLanguages`
- : An array of strings equal to [BCP 47 language tags](https://en.wikipedia.org/wiki/IETF_language_tag#List_of_common_primary_language_subtags) (as specified in [RFC 5646](https://datatracker.ietf.org/doc/html/rfc5646)) specifying the expected languages of the input text. Defaults to `["en"]`.
- `expectedContextLanguages`
- : An array of strings equal to BCP 47 language tags specifying the expected languages of any provided context strings (either the [`sharedContext`](#sharedContext) passed to the `Summarizer`, or a `context` specified during a {{domxref("Summarizer.summarize", "summarize()")}} or {{domxref("Summarizer.summarizeStreaming", "summarizeStreaming()")}} call). Defaults to `["en"]`.
- : An array of strings equal to BCP 47 language tags specifying the expected languages of any provided context strings (either the [`sharedContext`](/en-US/docs/Web/API/Summarizer/create_static#sharedcontext) passed to the `Summarizer`, or a `context` specified during a {{domxref("Summarizer.summarize", "summarize()")}} or {{domxref("Summarizer.summarizeStreaming", "summarizeStreaming()")}} call). Defaults to `["en"]`.
- `format`
- : An enumerated value specifying the text {{domxref("Summarizer.format", "format")}} you want summaries returned in. Defaults to `markdown`.
- `length`
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/summarizer/create_static/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Summarizer.create(options)
- `expectedInputLanguages`
- : An array of strings specifying the expected languages of the input text, which should be valid [BCP 47 language tags](https://en.wikipedia.org/wiki/IETF_language_tag#List_of_common_primary_language_subtags) (as specified in [RFC 5646](https://datatracker.ietf.org/doc/html/rfc5646)). Defaults to `["en"]`.
- `expectedContextLanguages`
- : An array of strings specifying the expected languages of any provided context strings (either the [`sharedContext`](#sharedContext) passed to the `Summarizer`, or a `context` specified during a {{domxref("Summarizer.summarize", "summarize()")}} or {{domxref("Summarizer.summarizeStreaming", "summarizeStreaming()")}} call), which should be valid BCP 47 language tags. Defaults to `["en"]`.
- : An array of strings specifying the expected languages of any provided context strings (either the [`sharedContext`](#sharedcontext) passed to the `Summarizer`, or a `context` specified during a {{domxref("Summarizer.summarize", "summarize()")}} or {{domxref("Summarizer.summarizeStreaming", "summarizeStreaming()")}} call), which should be valid BCP 47 language tags. Defaults to `["en"]`.
- `format`
- : An enumerated value specifying the text {{domxref("Summarizer.format", "format")}} you want summaries returned in. Defaults to `markdown`.
- `length`
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/summarizer/summarize/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ A {{jsxref("Promise")}} that fulfills with a string containing the generated sum
- `NotSupportedError` {{domxref("DOMException")}}
- : Thrown if the provided `context` is not in language the `Summarizer` supports.
- `QuotaExceededError` {{domxref("DOMException")}}
- : Thrown if the summarize operation exceeds the available {{domxref("Summarize.inputQuota", "inputQuota")}}.
- : Thrown if the summarize operation exceeds the available {{domxref("Summarizer.inputQuota", "inputQuota")}}.
- `UnknownError` {{domxref("DOMException")}}
- : Thrown if the `summarize()` call failed for any other reason, or a reason the user agent did not wish to disclose.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ A {{domxref("ReadableStream")}} containing the generated summary.
- `NotSupportedError` {{domxref("DOMException")}}
- : Thrown if the provided `context` is not in language the `Summarizer` supports.
- `QuotaExceededError` {{domxref("DOMException")}}
- : Thrown if the summarize operation exceeds the available {{domxref("Summarize.inputQuota", "inputQuota")}}.
- : Thrown if the summarize operation exceeds the available {{domxref("Summarizer.inputQuota", "inputQuota")}}.
- `UnknownError` {{domxref("DOMException")}}
- : Thrown if the `summarizeStreaming()` call failed for any other reason, or a reason the user agent did not wish to disclose.

Expand Down