feat: remove formal/informal LDA analysis from the bicorder (v1.3.0)

The two-family cluster classification is a research finding, not a
diagnostic; embedding it in the tool caused recurring bugs:

- ascii_bicorder.py had an inverted LDA sign (institutional mapped to 9,
  not 1) and a stale term check ('bureaucratic') that silently disabled
  the calculation after the Feb 2026 rename — output was always null
- The web app and Python script had divergent sign conventions and
  divergent version-mismatch behavior (skip vs. continue with stale model)

Changes:
- bicorder.json: drop the formal/informal analysis gradient; version 1.3.0
- ascii_bicorder.py: remove all LDA/model machinery; keep hardness and
  polarization as the only automated analyses
- App.svelte: remove classifier import, model constant, LDA calculation,
  and form-recommendation reactive block; dispatch automated analyses by
  term_left instead of array index
- Delete bicorder-classifier.ts and FormRecommendation.svelte (the latter
  was imported but never rendered)
- AnalysisTransitionBanner: remove recommendation alert and prop; fix
  hardcoded index checks that referenced the removed gradient
- vite.config.ts / vite-env.d.ts: stop loading bicorder_model.json

The cluster classifier lives on as research in analysis/ (scripts and
model untouched there). bicorder.txt regenerated.
This commit is contained in:
Protocolbot committed 2026-09-23 07:58:11 -06:00
1 parent fb3bebcea0
commit 8c40ca076b
9 files changed
+67 -1040

No files matched your search

+1 -7
View File
@@ -9,11 +9,6 @@ const bicorderData = JSON.parse(
fs.readFileSync(path.resolve(__dirname, '../bicorder.json'), 'utf-8')
)
// Read bicorder_model.json at build time
const bicorderModel = JSON.parse(
fs.readFileSync(path.resolve(__dirname, '../analysis/bicorder_model.json'), 'utf-8')
)
export default defineConfig({
base: './',
plugins: [
@@ -61,7 +56,6 @@ export default defineConfig({
})
],
define: {
'__BICORDER_DATA__': JSON.stringify(bicorderData),
'__BICORDER_MODEL__': JSON.stringify(bicorderModel)
'__BICORDER_DATA__': JSON.stringify(bicorderData)
}
})