mirror of
https://github.com/elder-plinius/P4RS3LT0NGV3.git
synced 2026-08-28 13:50:49 +02:00
Add Latin-root lexeme analysis to prompt tools
This commit is contained in:
@@ -13,6 +13,48 @@
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div v-if="acGetLexemeAnalysis().totalFindings" class="lexeme-analysis-card">
|
||||
<div class="lexeme-analysis-header">
|
||||
<div>
|
||||
<div class="lexeme-analysis-kicker">Latin-Root Analysis</div>
|
||||
<h4>{{ acGetLexemeAnalysis().summary }}</h4>
|
||||
<p>This input contains affix patterns that skew toward destructive or lethal framing. Use the generated rewrites to neutralize tone before transformation.</p>
|
||||
</div>
|
||||
<button type="button" class="action-button copy lexeme-neutralize-btn" @click="acNeutralizeInput">
|
||||
<i class="fas fa-seedling"></i> Neutralize flagged terms
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="lexeme-analysis-list">
|
||||
<div v-for="finding in acGetLexemeAnalysis().findings" :key="finding.id" class="lexeme-analysis-item">
|
||||
<div class="lexeme-analysis-item-top">
|
||||
<div class="lexeme-analysis-term-group">
|
||||
<code class="lexeme-term">{{ finding.term }}</code>
|
||||
<span class="lexeme-chip">{{ finding.partOfSpeech }}</span>
|
||||
<span class="lexeme-chip">{{ finding.affixes.join(', ') }}</span>
|
||||
<span class="lexeme-chip">confidence {{ Math.round(finding.confidence * 100) }}%</span>
|
||||
</div>
|
||||
<div class="lexeme-analysis-domain">
|
||||
<span v-if="finding.semanticDomain"><strong>Domain:</strong> {{ finding.semanticDomain }}</span>
|
||||
<span v-else><strong>Domain:</strong> unresolved root</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="lexeme-analysis-rationale">{{ finding.rationale }}</p>
|
||||
<div class="lexeme-analysis-rewrites">
|
||||
<button
|
||||
v-for="rewrite in finding.rewrites"
|
||||
:key="finding.id + '-' + rewrite"
|
||||
type="button"
|
||||
class="lexeme-rewrite-btn"
|
||||
@click="acApplyLexemeRewrite(finding.term, rewrite)"
|
||||
>
|
||||
{{ rewrite }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="options-grid ac-options">
|
||||
<label>
|
||||
Model
|
||||
|
||||
Reference in New Issue
Block a user