Slightly more relaxed post length scoring

This commit is contained in:
Mr. Stallion 2021-03-26 12:53:17 -05:00
parent f264add394
commit 60a9dc0997
3 changed files with 8 additions and 6 deletions

View File

@ -72,7 +72,7 @@ export function getStatusClasses(
const cache = core.cache.profileCache.getSync(character.name); const cache = core.cache.profileCache.getSync(character.name);
if (cache) { if (cache) {
if ((cache.match.searchScore > kinkMatchWeights.unicornThreshold) && (cache.match.matchScore === Scoring.MATCH)) { if ((cache.match.searchScore >= kinkMatchWeights.unicornThreshold) && (cache.match.matchScore === Scoring.MATCH)) {
matchClass = 'match-found unicorn'; matchClass = 'match-found unicorn';
matchScore = 'unicorn'; matchScore = 'unicorn';
} else { } else {

View File

@ -149,7 +149,7 @@ export const postLengthPreferenceScoreMapping = {
[PostLengthPreference.MultiParagraph_14_25]: Scoring.MATCH, [PostLengthPreference.MultiParagraph_14_25]: Scoring.MATCH,
[PostLengthPreference.StrongParagraph_10_14]: Scoring.MATCH, [PostLengthPreference.StrongParagraph_10_14]: Scoring.MATCH,
[PostLengthPreference.Paragraph_7_10]: Scoring.MATCH, [PostLengthPreference.Paragraph_7_10]: Scoring.MATCH,
[PostLengthPreference.SemiParagraph_4_7]: Scoring.WEAK_MISMATCH, [PostLengthPreference.SemiParagraph_4_7]: Scoring.WEAK_MATCH,
[PostLengthPreference.Short_2_4]: Scoring.MISMATCH, [PostLengthPreference.Short_2_4]: Scoring.MISMATCH,
[PostLengthPreference.VeryShort_1_2]: Scoring.MISMATCH [PostLengthPreference.VeryShort_1_2]: Scoring.MISMATCH
}, },
@ -158,7 +158,7 @@ export const postLengthPreferenceScoreMapping = {
[PostLengthPreference.MultiParagraph_14_25]: Scoring.WEAK_MATCH, [PostLengthPreference.MultiParagraph_14_25]: Scoring.WEAK_MATCH,
[PostLengthPreference.StrongParagraph_10_14]: Scoring.MATCH, [PostLengthPreference.StrongParagraph_10_14]: Scoring.MATCH,
[PostLengthPreference.Paragraph_7_10]: Scoring.MATCH, [PostLengthPreference.Paragraph_7_10]: Scoring.MATCH,
[PostLengthPreference.SemiParagraph_4_7]: Scoring.WEAK_MATCH, [PostLengthPreference.SemiParagraph_4_7]: Scoring.MATCH,
[PostLengthPreference.Short_2_4]: Scoring.MISMATCH, [PostLengthPreference.Short_2_4]: Scoring.MISMATCH,
[PostLengthPreference.VeryShort_1_2]: Scoring.MISMATCH [PostLengthPreference.VeryShort_1_2]: Scoring.MISMATCH
}, },
@ -166,7 +166,7 @@ export const postLengthPreferenceScoreMapping = {
[PostLengthPreference.SemiParagraph_4_7]: { [PostLengthPreference.SemiParagraph_4_7]: {
[PostLengthPreference.MultiParagraph_14_25]: Scoring.MISMATCH, [PostLengthPreference.MultiParagraph_14_25]: Scoring.MISMATCH,
[PostLengthPreference.StrongParagraph_10_14]: Scoring.WEAK_MISMATCH, [PostLengthPreference.StrongParagraph_10_14]: Scoring.WEAK_MISMATCH,
[PostLengthPreference.Paragraph_7_10]: Scoring.WEAK_MATCH, [PostLengthPreference.Paragraph_7_10]: Scoring.MATCH,
[PostLengthPreference.SemiParagraph_4_7]: Scoring.MATCH, [PostLengthPreference.SemiParagraph_4_7]: Scoring.MATCH,
[PostLengthPreference.Short_2_4]: Scoring.MATCH, [PostLengthPreference.Short_2_4]: Scoring.MATCH,
[PostLengthPreference.VeryShort_1_2]: Scoring.WEAK_MATCH [PostLengthPreference.VeryShort_1_2]: Scoring.WEAK_MATCH
@ -176,7 +176,7 @@ export const postLengthPreferenceScoreMapping = {
[PostLengthPreference.MultiParagraph_14_25]: Scoring.MISMATCH, [PostLengthPreference.MultiParagraph_14_25]: Scoring.MISMATCH,
[PostLengthPreference.StrongParagraph_10_14]: Scoring.MISMATCH, [PostLengthPreference.StrongParagraph_10_14]: Scoring.MISMATCH,
[PostLengthPreference.Paragraph_7_10]: Scoring.WEAK_MISMATCH, [PostLengthPreference.Paragraph_7_10]: Scoring.WEAK_MISMATCH,
[PostLengthPreference.SemiParagraph_4_7]: Scoring.WEAK_MATCH, [PostLengthPreference.SemiParagraph_4_7]: Scoring.MATCH,
[PostLengthPreference.Short_2_4]: Scoring.MATCH, [PostLengthPreference.Short_2_4]: Scoring.MATCH,
[PostLengthPreference.VeryShort_1_2]: Scoring.MATCH [PostLengthPreference.VeryShort_1_2]: Scoring.MATCH
}, },
@ -185,7 +185,7 @@ export const postLengthPreferenceScoreMapping = {
[PostLengthPreference.MultiParagraph_14_25]: Scoring.MISMATCH, [PostLengthPreference.MultiParagraph_14_25]: Scoring.MISMATCH,
[PostLengthPreference.StrongParagraph_10_14]: Scoring.MISMATCH, [PostLengthPreference.StrongParagraph_10_14]: Scoring.MISMATCH,
[PostLengthPreference.Paragraph_7_10]: Scoring.MISMATCH, [PostLengthPreference.Paragraph_7_10]: Scoring.MISMATCH,
[PostLengthPreference.SemiParagraph_4_7]: Scoring.WEAK_MATCH, [PostLengthPreference.SemiParagraph_4_7]: Scoring.WEAK_MISMATCH,
[PostLengthPreference.Short_2_4]: Scoring.MATCH, [PostLengthPreference.Short_2_4]: Scoring.MATCH,
[PostLengthPreference.VeryShort_1_2]: Scoring.MATCH [PostLengthPreference.VeryShort_1_2]: Scoring.MATCH
} }

View File

@ -1204,6 +1204,8 @@ export class Matcher {
log.debug( log.debug(
'report.score.search', 'report.score.search',
match.you.you.name,
match.them.you.name,
{ {
you: match.you.you.name, you: match.you.you.name,
them: match.them.you.name, them: match.them.you.name,