# OfficeContentInstructionDetector

Performs bounded, explainable heuristic detection without modifying source text.

Class 

`OfficeIMO.ContentSafety`

**Namespace**

`OfficeIMO.ContentSafety`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeContentInstructionDetector.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/ContentSafety/OfficeContentInstructionDetector.cs#L20)

**Modifiers**

static

Performs bounded, explainable heuristic detection without modifying source text.

## Inheritance

- object
- OfficeContentInstructionDetector

Filter members 

Show inherited

## Methods

`public static OfficeContentInstructionAnalysis Analyze(string text, int maxCharacters = 1000000, int maxDecodedCharacters = 32768, int maxEncodedCandidates = 32)` [#](#method-analyze-string-int32-int32-int32)

[OfficeContentInstructionAnalysis.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/ContentSafety/OfficeContentInstructionAnalysis.cs#L25)

Inspects ordinary text and one layer of printable UTF-8 Base64, including line-wrapped tokens. Decoding is inspection-only; nested encodings and arbitrary obfuscation are not evaluated.

Parameters

**text string required**

**maxCharacters int = 1000000 optional**

**maxDecodedCharacters int = 32768 optional**

**maxEncodedCandidates int = 32 optional**

Returns

`OfficeContentInstructionAnalysis`

`public static IReadOnlyList<string> Detect(string text)` [#](#method-detect-string)

[OfficeContentInstructionDetector.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/ContentSafety/OfficeContentInstructionDetector.cs#L20)

Returns deterministic signal identifiers without claiming that the text is malicious.

Parameters

**text string required**

Returns

`IReadOnlyList<string>`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:87C02C334AD1B0AF350EA917CE5AE77D8D5A05ABE77D1B8F0E70DDADC9B99E6F -->
