|
FOSSredder 0.5.0
|
Functions | |
| std::string | trim (std::string value) |
| Trims whitespace from raw text. | |
| bool | matchesDraftText (const std::string &left, const std::string &right) |
| Compares two pieces of draft text after normalization. | |
| std::vector< std::string > | splitLines (const std::string &text) |
| Splits text into non-empty normalized lines. | |
| std::string | joinNonEmptyLines (const std::vector< std::string > &values, const std::string &separator) |
| Joins non-empty lines with a separator. | |
| bool | lineLooksMetadataBoundary (const std::string &line) |
| Checks whether a line looks like a metadata boundary. | |
| bool | lineLooksActorStopSignal (const std::string &line) |
| Checks whether a line should stop actor extraction. | |
| bool | lineLooksActorContinuation (const std::string &line) |
| Checks whether a line can continue actor extraction. | |
| std::string | firstMeaningfulLine (const std::string &text) |
| Returns the first meaningful line of text. | |
| std::string | leadingPhrase (const std::string &text, std::size_t maxTokens) |
| Extracts a leading phrase from text. | |
| std::string | normalizeText (std::string text) |
| Normalizes draft text for matching. | |
| std::vector< std::string > | tokens (const std::string &text) |
| Splits normalized text into tokens. | |
| std::string | leadingText (const std::string &text, std::size_t maxTokens) |
| Returns a leading slice of the normalized text. | |
| bool | tokenIsMatchable (const std::string &token) |
| Checks whether a token is useful for matching. | |
| int | tokenOverlapScore (const std::vector< std::string > &sourceTokens, const std::vector< std::string > &targetTokens) |
| Scores token overlap between two token lists. | |
| double | aliasHitWeight (int hitCount) |
| Computes a score weight from alias hit count. | |
| double | aliasRecencyWeight (const std::string &lastUsedAt) |
| Computes a score weight from alias recency. | |
| std::string | metadataSignalText (const std::string &metadata) |
| Normalizes metadata into signal text. | |
| std::vector< std::string > | referenceAliasesFromMetadata (const std::string &metadata) |
| Extracts reference-like aliases from metadata. | |
| std::vector< std::string > | knownContractTypes (const core::domain::catalog::WorkspaceCatalog &state) |
| Collects known contract types from the workspace state. | |
| std::string | extractTypeText (const core::domain::catalog::WorkspaceCatalog &state, const std::string &signalText, const std::vector< std::string > &lines) |
| Extracts a contract type hint from draft text. | |
| std::string | extractActorText (const std::vector< std::string > &lines, const std::string &typeText) |
| Extracts an actor hint from draft text. | |
| double core::domain::policies::matching::aliasHitWeight | ( | int | hitCount | ) |
Computes a score weight from alias hit count.
| hitCount | Alias hit count. |
Definition at line 217 of file DraftMatchingPolicy.cpp.
| double core::domain::policies::matching::aliasRecencyWeight | ( | const std::string & | lastUsedAt | ) |
Computes a score weight from alias recency.
| lastUsedAt | Last-used timestamp. |
Definition at line 222 of file DraftMatchingPolicy.cpp.
| std::string core::domain::policies::matching::extractActorText | ( | const std::vector< std::string > & | lines, |
| const std::string & | typeText ) |
Extracts an actor hint from draft text.
| lines | Draft lines. |
| typeText | Already resolved type text. |
Definition at line 354 of file DraftMatchingPolicy.cpp.

| std::string core::domain::policies::matching::extractTypeText | ( | const core::domain::catalog::WorkspaceCatalog & | state, |
| const std::string & | signalText, | ||
| const std::vector< std::string > & | lines ) |
Extracts a contract type hint from draft text.
| state | Workspace snapshot. |
| signalText | Combined signal text. |
| lines | Draft lines. |
Definition at line 300 of file DraftMatchingPolicy.cpp.

| std::string core::domain::policies::matching::firstMeaningfulLine | ( | const std::string & | text | ) |
Returns the first meaningful line of text.
| text | Raw multiline text. |
Definition at line 144 of file DraftMatchingPolicy.cpp.

| std::string core::domain::policies::matching::joinNonEmptyLines | ( | const std::vector< std::string > & | values, |
| const std::string & | separator ) |
Joins non-empty lines with a separator.
| values | Input lines. |
| separator | Separator string. |
Definition at line 83 of file DraftMatchingPolicy.cpp.


| std::vector< std::string > core::domain::policies::matching::knownContractTypes | ( | const core::domain::catalog::WorkspaceCatalog & | state | ) |
Collects known contract types from the workspace state.
| state | Workspace snapshot. |
Definition at line 282 of file DraftMatchingPolicy.cpp.


| std::string core::domain::policies::matching::leadingPhrase | ( | const std::string & | text, |
| std::size_t | maxTokens ) |
Extracts a leading phrase from text.
| text | Raw text. |
| maxTokens | Maximum number of tokens to keep. |
Definition at line 152 of file DraftMatchingPolicy.cpp.

| std::string core::domain::policies::matching::leadingText | ( | const std::string & | text, |
| std::size_t | maxTokens ) |
Returns a leading slice of the normalized text.
| text | Raw text. |
| maxTokens | Maximum number of tokens to keep. |
Definition at line 189 of file DraftMatchingPolicy.cpp.

| bool core::domain::policies::matching::lineLooksActorContinuation | ( | const std::string & | line | ) |
Checks whether a line can continue actor extraction.
| line | Raw line text. |
Definition at line 123 of file DraftMatchingPolicy.cpp.


| bool core::domain::policies::matching::lineLooksActorStopSignal | ( | const std::string & | line | ) |
Checks whether a line should stop actor extraction.
| line | Raw line text. |
Definition at line 107 of file DraftMatchingPolicy.cpp.


| bool core::domain::policies::matching::lineLooksMetadataBoundary | ( | const std::string & | line | ) |
Checks whether a line looks like a metadata boundary.
| line | Raw line text. |
Definition at line 97 of file DraftMatchingPolicy.cpp.


| bool core::domain::policies::matching::matchesDraftText | ( | const std::string & | left, |
| const std::string & | right ) |
Compares two pieces of draft text after normalization.
| left | Left text. |
| right | Right text. |
Definition at line 59 of file DraftMatchingPolicy.cpp.

| std::string core::domain::policies::matching::metadataSignalText | ( | const std::string & | metadata | ) |
Normalizes metadata into signal text.
| metadata | Raw metadata text. |
Definition at line 228 of file DraftMatchingPolicy.cpp.

| std::string core::domain::policies::matching::normalizeText | ( | std::string | text | ) |
Normalizes draft text for matching.
| text | Raw text. |
Definition at line 166 of file DraftMatchingPolicy.cpp.


| std::vector< std::string > core::domain::policies::matching::referenceAliasesFromMetadata | ( | const std::string & | metadata | ) |
Extracts reference-like aliases from metadata.
| metadata | Raw metadata text. |
Definition at line 264 of file DraftMatchingPolicy.cpp.

| std::vector< std::string > core::domain::policies::matching::splitLines | ( | const std::string & | text | ) |
Splits text into non-empty normalized lines.
| text | Raw multiline text. |
Definition at line 64 of file DraftMatchingPolicy.cpp.


| bool core::domain::policies::matching::tokenIsMatchable | ( | const std::string & | token | ) |
Checks whether a token is useful for matching.
| token | Raw token. |
Definition at line 200 of file DraftMatchingPolicy.cpp.

| int core::domain::policies::matching::tokenOverlapScore | ( | const std::vector< std::string > & | sourceTokens, |
| const std::vector< std::string > & | targetTokens ) |
Scores token overlap between two token lists.
| sourceTokens | Candidate tokens. |
| targetTokens | Query tokens. |
Definition at line 206 of file DraftMatchingPolicy.cpp.

| std::vector< std::string > core::domain::policies::matching::tokens | ( | const std::string & | text | ) |
Splits normalized text into tokens.
| text | Raw text. |
Definition at line 181 of file DraftMatchingPolicy.cpp.


| std::string core::domain::policies::matching::trim | ( | std::string | value | ) |
Trims whitespace from raw text.
| value | Raw text. |
Definition at line 54 of file DraftMatchingPolicy.cpp.

