Skip to main content

Crate bonjour

Crate bonjour 

Source
Expand description

Extract a probable greeting name from an arbitrary display name, with a decision score.

A display name is not necessarily a person: it may be a company or a club (ACME Corporation, Club de Tennis Strasbourg). So rather than assuming a [first] [last] structure, we evaluate candidate spans using frequency-weighted first-name evidence, surname-role evidence, and organization evidence. Uncertain cases yield None; precision over recall: a missed greeting is cheap, greeting a tennis club “Bonjour, Martin” is not.

Structs§

CandidateScore
One lexically eligible candidate exposed by detailed diagnostics.
CandidateSignals
Extensible scorer signals attached to an enumerated candidate.
Classifier
Immutable, reusable greeting-name classifier.
ControlledRuleTrace
Conditions evaluated for the frozen C5 controlled-calibration path.
DecisionContributions
Weighted terms in the frozen C2 emission score.
DecisionTrace
Diagnostic trace of the frozen production C6 decision.
DecisionVetoes
Existing hard and soft vetoes applied by frozen C3.1.
DetailedInference
Inference diagnostics together with every eligible candidate.
FirstPositionRuleTrace
Conditions evaluated for the frozen C6 first-position path.
Inference
One production C6 inference over a display name.
LoadError
Failure to load or validate the pinned production artifact.
RelationalRuleTrace
Conditions evaluated for one frozen C4 relational emission path.

Enums§

EmissionSource
Production C6 emission path selected for an inference.
GenderHint
LoadErrorKind
Stable category for artifact-loading failures.