Skip to main content

LogicalFallacy

The CommentScore class holds an array of logical fallacies. Each one is an instance of this class.

Represents a logical fallacy identified in a comment. For example, "ad hominem".

  • Full name: \Respectify\LogicalFallacy

See Also:

  • CommentScore - The comment score includes an array of logical fallacies.

Properties

fallacyName

The name of the logical fallacy, for example, "straw man".

public string $fallacyName

quotedLogicalFallacyExample

The part of the comment that may contain the logical fallacy.

public string $quotedLogicalFallacyExample

explanationAndSuggestions

Explanation of why this is an example of this kind of logical fallacy, and suggestions for improvement to keep the point while not falling into the trap.

public string $explanationAndSuggestions

suggestedRewrite

Suggested rewrite to avoid the logical fallacy.

This is only rarely present, and only if Respectify is very certain what the intent is and how to rewrite it.

public string $suggestedRewrite

Methods

__construct

LogicalFallacy constructor. You should never need to call this. It is created internally by the Respectify client class when it gets a response.

public __construct(array $data): mixed

Parameters:

ParameterTypeDescription
$dataarrayThe data to initialize the logical fallacy, coming from JSON.