Table of Contents

Method IsSarcastic

Namespace
LMKit.TextAnalysis
Assembly
LM-Kit.NET.dll

IsSarcastic(string, CancellationToken)

Analyzes the provided text to determine if it contains sarcasm.

public bool IsSarcastic(string text, CancellationToken cancellationToken = default)

Parameters

text string

The text to analyze for sarcastic content. This should be a non-empty string representing the textual content whose sarcasm is to be classified.

cancellationToken CancellationToken

Optional. A CancellationToken for handling cancellation requests.

Returns

bool

Returns true if the text is identified as sarcastic; otherwise, false.

Exceptions

OperationCanceledException

Thrown when the operation is cancelled based on the CancellationToken.