Scale Intelligence■ Docs
Docs / The model / ContactKind

ContactKind.

One way a person or a company is reached or found anywhere on the web, as the extension reads it on every page and the accept keys it: an email, a phone, a handle on a platform, an invite, a site; found by the addresses of links, by a pattern over the visible text, or by a bare handle near a cue word; it becomes an…

Figure 1ContactKindspecified
CONTACTKINDrow at platform scopenametextthe identifier namespace a found value becomesnamespacetextofenum:a person|a company|eitheraddress patterns of links that are this kind, a * for any run; mailto:* and tel:* includedlink_patterns[text]a regular expression over the visible text, with one capturing group for the valuetext_patterntextoptionalwords near a bare @handle that make it this kindcue_words[text]the platform whose own pages make a bare @handle this kindplatformtextoptionalnormalisationenum:lowercase|strip the at sign…1 decides sameness, 2 supports it, 3 is a hinttrust_rankcountread last, for a link that no other kind claimscatch_allboolpoints at no other object
ContactKind is a row at platform scope. The drawing shows its fields and the objects that they point at.
kind
row
scope
platform
key
its name
store
postgres
family
sources

Fields#

fieldtyperequirednote
nametextyes
namespacetextyesthe identifier namespace a found value becomes
ofone of a person | a company | eitheryes
link_patterns[text]yesaddress patterns of links that are this kind, a * for any run; mailto:* and tel:* included
text_patterntextnoa regular expression over the visible text, with one capturing group for the value
cue_words[text]yeswords near a bare @handle that make it this kind
platformtextnothe platform whose own pages make a bare @handle this kind
normalisationone of lowercase | strip the at sign | strip the scheme | digits only | the host only | as isyes
trust_rankcountyes1 decides sameness, 2 supports it, 3 is a hint
catch_allboolyesread last, for a link that no other kind claims

Routes that use it#

No route takes or returns ContactKind directly. The record holds it, and the objects that point at it reach it.