Skip to content

Commit cd39299

Browse files
committed
Special-case no content inputs
Closes #32.
1 parent 0464e6f commit cd39299

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.bs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,8 @@ The <dfn attribute for="AISummarizer">outputLanguage</dfn> getter steps are to r
919919

920920
If they are non-null, |sharedContext| and |context| should be used to aid in the summarization by providing context on how the web developer wishes the input to be summarized.
921921

922+
If |input| is the empty string, or otherwise consists of no summarizable content (e.g., only contains whitespace, or control characters), then the resulting summary should be the empty string. In such cases, |sharedContext|, |context|, |type|, |format|, |length|, and |outputLanguage| should be ignored.
923+
922924
The summarization should conform to the guidance given by |type|, |format|, and |length|, in the definitions of each of their enumeration values.
923925

924926
If |outputLanguage| is non-null, the summarization should be in that language. Otherwise, it should be in the language of |input| (which might not match that of |context| or |sharedContext|). If |input| contains multiple languages, or the language of |input| cannot be detected, then either the output language is [=implementation-defined=], or the implementation may treat this as an error, per the guidance in [[#summarizer-errors]].

0 commit comments

Comments
 (0)