ssci-subagent-skills 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +195 -0
- package/LICENSE +21 -0
- package/README.md +529 -0
- package/agents/LITERATURE_EXPERT_INTEGRATION_SUMMARY.md +618 -0
- package/agents/LITERATURE_EXPERT_INTEGRATION_UPDATE.md +284 -0
- package/agents/__pycache__/literature_expert_integration.cpython-312.pyc +0 -0
- package/agents/ant-expert-main.md +127 -0
- package/agents/ant-expert.md +301 -0
- package/agents/chinese-localization-expert.md +261 -0
- package/agents/core_engine.py +375 -0
- package/agents/digital-ecosystem-analyst/digital-ecosystem-analyst.py +507 -0
- package/agents/digital-marx-expert.md +373 -0
- package/agents/digital-transformation-ecosystem-analyst/digital-transformation-ecosystem-analyst.md +76 -0
- package/agents/digital-transformation-innovation-analyst/DATA_CONSTITUTION_REALITY_VERIFIED.py +233 -0
- package/agents/digital-transformation-innovation-analyst/DATA_CONSTITUTION_SKILL_SPECIFICATION.md +357 -0
- package/agents/digital-transformation-innovation-analyst/README_AGENTSILLS_IO_STANDARD.md +418 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst.md +469 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst.py +513 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_DATA_CONSTITUTION.md +299 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_DATA_CONSTITUTION.py +342 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_DATA_CONSTITUTION_TDD.py +615 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_REAL_DATA_TDD.py +291 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_data_real_sources.py +468 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_tdd.py +1126 -0
- package/agents/digital-transformation-innovation-analyst/digital_transformation_innovation-analyst.py +756 -0
- package/agents/digital-transformation-innovation-analyst/tdd_executor.py +203 -0
- package/agents/digital-transformation-innovation-analyst/tdd_runner.py +154 -0
- package/agents/field-analysis-expert-main.md +129 -0
- package/agents/field-analysis-expert.md +231 -0
- package/agents/grounded-theory-agent-implementation.md +431 -0
- package/agents/grounded-theory-expert-v2.md +202 -0
- package/agents/grounded-theory-expert.md +309 -0
- package/agents/literature-expert-v2.md +489 -0
- package/agents/literature-expert.md +639 -0
- package/agents/literature_expert_integration.py +384 -0
- package/agents/references/actor-network-analysis.html +598 -0
- package/agents/references/ant-actor-identification.md +155 -0
- package/agents/references/ant-network-analysis.md +266 -0
- package/agents/references/ant-power-analysis.md +323 -0
- package/agents/references/ant-translation-process.md +185 -0
- package/agents/references/bourdieu-field-analysis.html +805 -0
- package/agents/references/business-ecosystem-analysis.html +598 -0
- package/agents/references/business-model-analysis-implementation-plan.md +199 -0
- package/agents/references/business-model-analysis-plan.md +217 -0
- package/agents/references/business-model-analysis.html +620 -0
- package/agents/references/business-model-coordinator.js +356 -0
- package/agents/references/business-model-expert-agent.js +204 -0
- package/agents/references/data-analysis.html +397 -0
- package/agents/references/did-analysis.html +591 -0
- package/agents/references/digital-durkheim.html +725 -0
- package/agents/references/digital-marx.html +460 -0
- package/agents/references/digital-weber.html +591 -0
- package/agents/references/field-boundary-identification.md +232 -0
- package/agents/references/field-capital-analysis.md +268 -0
- package/agents/references/grounded-theory.html +731 -0
- package/agents/references/msqca-analysis.html +589 -0
- package/agents/references/research-design.html +394 -0
- package/agents/references/social-network-analysis.html +590 -0
- package/agents/references/survey-design.html +577 -0
- package/agents/sna-expert.md +348 -0
- package/common/dependency_config.py +96 -0
- package/common/dependency_manager.py +175 -0
- package/common/smart_dependency_manager.py +331 -0
- package/package.json +81 -0
- package/scripts/postinstall.js +147 -0
- package/scripts/validate-skills.js +209 -0
- package/skills/2025_12_21_cnki-downloader.skill.install/cnki-downloader.skill +0 -0
- package/skills/2025_12_21_cnki-downloader.skill.install/cnki-downloader.skill.install.md +114 -0
- package/skills/COMPLIANCE_REPORT.md +122 -0
- package/skills/INTEGRATION_PLAN.md +405 -0
- package/skills/QWEN.md +230 -0
- package/skills/SKILLS_APPLICATION_MAPPING.md +155 -0
- package/skills/__init__.py +7 -0
- package/skills/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/SKILL.md +195 -0
- package/skills/alienation-analysis/__init__.py +8 -0
- package/skills/alienation-analysis/prompts/core-analysis-framework.md +88 -0
- package/skills/alienation-analysis/prompts/specialized-alienation-analysis.md +190 -0
- package/skills/alienation-analysis/pyproject.toml +36 -0
- package/skills/alienation-analysis/scripts/__init__.py +8 -0
- package/skills/alienation-analysis/scripts/__pycache__/alienation_analysis_engine.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/career_development_evaluation.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/classify_alienation_types.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/consumer_behavior_analysis.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/core_analyzer.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/digital_wellbeing_evaluation.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/generate_intervention_plan.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/materialism_assessment.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/relationship_quality_assessment.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/social_network_analysis.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/technology_dependency_analysis.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/workplace_satisfaction_analysis.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/alienation_analysis_engine.py +597 -0
- package/skills/alienation-analysis/scripts/career_development_evaluation.py +512 -0
- package/skills/alienation-analysis/scripts/classify_alienation_types.py +357 -0
- package/skills/alienation-analysis/scripts/consumer_behavior_analysis.py +643 -0
- package/skills/alienation-analysis/scripts/core_analyzer.py +571 -0
- package/skills/alienation-analysis/scripts/digital_wellbeing_evaluation.py +597 -0
- package/skills/alienation-analysis/scripts/generate_intervention_plan.py +358 -0
- package/skills/alienation-analysis/scripts/materialism_assessment.py +528 -0
- package/skills/alienation-analysis/scripts/relationship_quality_assessment.py +621 -0
- package/skills/alienation-analysis/scripts/social_network_analysis.py +802 -0
- package/skills/alienation-analysis/scripts/technology_dependency_analysis.py +534 -0
- package/skills/alienation-analysis/scripts/workplace_satisfaction_analysis.py +340 -0
- package/skills/alienation_analysis/SKILL.md +291 -0
- package/skills/alienation_analysis/__init__.py +1 -0
- package/skills/alienation_analysis/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/alienation_analysis/scripts/__init__.py +1 -0
- package/skills/alienation_analysis/scripts/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/ant/SKILL.md +139 -0
- package/skills/ant/pyproject.toml +36 -0
- package/skills/ant/scripts/ant_analysis_with_fallback.py +383 -0
- package/skills/ant-expert/SKILL.md +182 -0
- package/skills/ant-expert/integration_with_trusted_scraper.md +115 -0
- package/skills/ant-expert/modules/__pycache__/network_analysis.cpython-312.pyc +0 -0
- package/skills/ant-expert/modules/__pycache__/participant_identification.cpython-312.pyc +0 -0
- package/skills/ant-expert/modules/__pycache__/translation_process.cpython-312.pyc +0 -0
- package/skills/ant-expert/modules/network_analysis.py +253 -0
- package/skills/ant-expert/modules/participant_identification.py +325 -0
- package/skills/ant-expert/modules/translation_process.py +283 -0
- package/skills/ant-expert/pyproject.toml +27 -0
- package/skills/ant-expert/scripts/ant_expert_analyzer.py +146 -0
- package/skills/ant-expert/test_input.json +82 -0
- package/skills/ant-expert/test_output.json +728 -0
- package/skills/ant-network-analysis/SKILL.md +132 -0
- package/skills/ant-participant-identification/SKILL.md +140 -0
- package/skills/ant-participant-identification/pyproject.toml +35 -0
- package/skills/ant-participant-identification/scripts/identify_participants.py +318 -0
- package/skills/ant-subagent/SKILL.md +60 -0
- package/skills/ant-subagent/modules/network_analysis.py +146 -0
- package/skills/ant-subagent/pyproject.toml +16 -0
- package/skills/ant-translation-process/SKILL.md +144 -0
- package/skills/ant-translation-process/pyproject.toml +35 -0
- package/skills/ant-translation-process/scripts/trace_translation.py +370 -0
- package/skills/ant_relationship_analysis.md +157 -0
- package/skills/arxiv-paper-search/ARXIV_SKILL_COMPLETION_REPORT.md +449 -0
- package/skills/arxiv-paper-search/DEPENDENCY_OPTIMIZATION.md +355 -0
- package/skills/arxiv-paper-search/OPTIMIZATION_SUMMARY.md +213 -0
- package/skills/arxiv-paper-search/README.md +90 -0
- package/skills/arxiv-paper-search/SKILL.md +321 -0
- package/skills/arxiv-paper-search/pyproject.toml +29 -0
- package/skills/arxiv-paper-search/references/ADVANCED_USAGE.md +587 -0
- package/skills/arxiv-paper-search/references/API_REFERENCE.md +350 -0
- package/skills/arxiv-paper-search/references/ARXIV_CATEGORIES.md +249 -0
- package/skills/arxiv-paper-search/references/USER_GUIDE.md +349 -0
- package/skills/arxiv-paper-search/requirements.txt +13 -0
- package/skills/arxiv-paper-search/scripts/__pycache__/arxiv_searcher.cpython-312.pyc +0 -0
- package/skills/arxiv-paper-search/scripts/arxiv_searcher.py +439 -0
- package/skills/arxiv-paper-search/scripts/test_arxiv_searcher.py +307 -0
- package/skills/arxiv-paper-search/test_abstracts.json +461 -0
- package/skills/arxiv-paper-search/test_batch_papers/2009.00804v2_Architectural_Implications_of_.pdf +0 -0
- package/skills/arxiv-paper-search/test_batch_papers/2201.00978v1_PyramidTNT +0 -0
- package/skills/arxiv-paper-search/test_batch_papers/2207.13219v4_Dalorex +0 -0
- package/skills/arxiv-paper-search/test_papers/1706.03762.pdf +0 -0
- package/skills/arxiv-paper-search/test_papers.csv +11 -0
- package/skills/best_practices.md +271 -0
- package/skills/business-ecosystem-analysis/integration_with_trusted_scraper.md +97 -0
- package/skills/business-ecosystem-data-collection/FreeDataCrawler.js +472 -0
- package/skills/business-ecosystem-data-collection/INFO.md +68 -0
- package/skills/business-ecosystem-data-collection/SKILL.md +118 -0
- package/skills/business-ecosystem-data-collection/algorithms/data_validation.py +44 -0
- package/skills/business-ecosystem-data-collection/algorithms/entity_recognition.py +53 -0
- package/skills/business-ecosystem-data-collection/algorithms/relationship_mapping.py +44 -0
- package/skills/business-ecosystem-data-collection/config.json +10 -0
- package/skills/business-ecosystem-data-collection/e2e-test.js +81 -0
- package/skills/business-ecosystem-data-collection/package-lock.json +433 -0
- package/skills/business-ecosystem-data-collection/package.json +21 -0
- package/skills/business-ecosystem-data-collection/references/data-collection-strategies.md +18 -0
- package/skills/business-ecosystem-data-collection/references/data-validation.md +22 -0
- package/skills/business-ecosystem-data-collection/references/entity-recognition.md +16 -0
- package/skills/business-ecosystem-data-collection/references/relationship-mapping.md +16 -0
- package/skills/business-ecosystem-data-collection/scripts/ecosystem_data_collector.py +103 -0
- package/skills/business-ecosystem-data-collection/skill.js +1383 -0
- package/skills/business-ecosystem-data-collection/skill.json +191 -0
- package/skills/business-ecosystem-data-collection/test.js +304 -0
- package/skills/business-ecosystem-data-collection/test_context.json +16 -0
- package/skills/business-model-analysis/INFO.md +65 -0
- package/skills/business-model-analysis/SKILL.md +208 -0
- package/skills/business-model-analysis/e2e-test.js +111 -0
- package/skills/business-model-analysis/integration_with_trusted_scraper.md +97 -0
- package/skills/business-model-analysis/package.json +23 -0
- package/skills/business-model-analysis/skill.js +1779 -0
- package/skills/business-model-analysis/skill.json +175 -0
- package/skills/business-model-analysis/test.js +202 -0
- package/skills/business-model-canvas-analysis/INFO.md +68 -0
- package/skills/business-model-canvas-analysis/README.md +53 -0
- package/skills/business-model-canvas-analysis/SKILL.md +215 -0
- package/skills/business-model-canvas-analysis/prompts.txt +70 -0
- package/skills/business-model-canvas-analysis/reference.md +101 -0
- package/skills/business-model-canvas-analysis/skill.js +675 -0
- package/skills/business-model-canvas-analysis/skill.json +47 -0
- package/skills/business-service-supply-analysis/INFO.md +28 -0
- package/skills/business-service-supply-analysis/SKILL.md +300 -0
- package/skills/business-service-supply-analysis/skill.js +1319 -0
- package/skills/business-service-supply-analysis/skill.json +233 -0
- package/skills/capital-analysis/INFO.md +80 -0
- package/skills/capital-analysis/README.md +65 -0
- package/skills/capital-analysis/SKILL.md +367 -0
- package/skills/capital-analysis/prompts.txt +103 -0
- package/skills/capital-analysis/reference.md +132 -0
- package/skills/capital-analysis/skill.js +739 -0
- package/skills/capital-analysis/skill.json +268 -0
- package/skills/checking-theory-saturation/SKILL.md +280 -0
- package/skills/checking-theory-saturation/pyproject.toml +17 -0
- package/skills/checking-theory-saturation/references/README.md +54 -0
- package/skills/checking-theory-saturation/scripts/__pycache__/assess_saturation.cpython-312.pyc +0 -0
- package/skills/checking-theory-saturation/scripts/assess_saturation.py +296 -0
- package/skills/checking-theory-saturation/tests/__pycache__/test_assess_saturation.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/checking-theory-saturation/tests/test_assess_saturation.py +194 -0
- package/skills/class-structure-analysis/SKILL.md +211 -0
- package/skills/competitive-analysis/INFO.md +77 -0
- package/skills/competitive-analysis/README.md +61 -0
- package/skills/competitive-analysis/SKILL.md +357 -0
- package/skills/competitive-analysis/prompts.txt +117 -0
- package/skills/competitive-analysis/reference.md +206 -0
- package/skills/competitive-analysis/skill.js +1166 -0
- package/skills/competitive-analysis/skill.json +219 -0
- package/skills/conflict-resolution/SKILL.md +124 -0
- package/skills/conflict-resolution/conflict-resolution-skill.md +628 -0
- package/skills/data-analysis/SKILL.md +73 -0
- package/skills/data-analysis/prompts/data-cleaning-outline.md +355 -0
- package/skills/data-analysis/prompts/data-cleaning.md +40 -0
- package/skills/data-analysis/prompts/data-understanding-outline.md +243 -0
- package/skills/data-analysis/prompts/data-understanding.md +43 -0
- package/skills/data-analysis/prompts/exploratory-analysis-outline.md +316 -0
- package/skills/data-analysis/prompts/exploratory-analysis.md +40 -0
- package/skills/data-analysis/prompts/modeling-strategy.md +40 -0
- package/skills/data-analysis/pyproject.toml +39 -0
- package/skills/dependency_management.md +46 -0
- package/skills/dialectical-quantitative-synthesis/SKILL.md +239 -0
- package/skills/did-analysis/SKILL.md +239 -0
- package/skills/did-analysis/prompts/causal-interpretation.md +245 -0
- package/skills/did-analysis/prompts/experimental-design.md +260 -0
- package/skills/did-analysis/prompts/model-specification.md +242 -0
- package/skills/did-analysis/prompts/policy-recommendation.md +253 -0
- package/skills/did-analysis/pyproject.toml +35 -0
- package/skills/did-analysis/references/BEST_PRACTICES.md +553 -0
- package/skills/did-analysis/scripts/__pycache__/did_estimator.cpython-312.pyc +0 -0
- package/skills/did-analysis/scripts/__pycache__/integrated_did.cpython-312.pyc +0 -0
- package/skills/did-analysis/scripts/__pycache__/parallel_trend.cpython-312.pyc +0 -0
- package/skills/did-analysis/scripts/__pycache__/robustness_test.cpython-312.pyc +0 -0
- package/skills/did-analysis/scripts/__pycache__/visualization.cpython-312.pyc +0 -0
- package/skills/did-analysis/scripts/did_estimator.py +553 -0
- package/skills/did-analysis/scripts/integrated_did.py +867 -0
- package/skills/did-analysis/scripts/parallel_trend.py +473 -0
- package/skills/did-analysis/scripts/parallel_trend_plot.png +0 -0
- package/skills/did-analysis/scripts/parallel_trend_test.png +0 -0
- package/skills/did-analysis/scripts/placebo_test_distribution.png +0 -0
- package/skills/did-analysis/scripts/robustness_test.py +633 -0
- package/skills/did-analysis/scripts/test_integration.py +253 -0
- package/skills/did-analysis/scripts/visualization.py +539 -0
- package/skills/digital-durkheim/SKILL.md +114 -0
- package/skills/digital-durkheim/prompts/collective-consciousness.md +127 -0
- package/skills/digital-durkheim/prompts/functional-analysis.md +127 -0
- package/skills/digital-durkheim/prompts/social-fact-identification.md +128 -0
- package/skills/digital-durkheim/prompts/social-solidarity.md +134 -0
- package/skills/digital-durkheim/pyproject.toml +36 -0
- package/skills/digital-durkheim/scripts/__pycache__/integrated_durkheim_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-durkheim/scripts/__pycache__/social_fact_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-durkheim/scripts/durkheim_analysis_results.json +226 -0
- package/skills/digital-durkheim/scripts/integrated_durkheim_analyzer.py +540 -0
- package/skills/digital-durkheim/scripts/social_fact_analyzer.py +712 -0
- package/skills/digital-durkheim/test_integration.py +226 -0
- package/skills/digital-marx/README.md +215 -0
- package/skills/digital-marx/SHORT_TERM_IMPLEMENTATION_REPORT.md +183 -0
- package/skills/digital-marx/SKILL.md +189 -0
- package/skills/digital-marx/THEORETICAL_ACCURACY_ANALYSIS.md +278 -0
- package/skills/digital-marx/prompts/material-base-analysis.md +113 -0
- package/skills/digital-marx/prompts/production-relations-analysis.md +113 -0
- package/skills/digital-marx/prompts/social-change-prediction.md +112 -0
- package/skills/digital-marx/prompts/superstructure-analysis.md +112 -0
- package/skills/digital-marx/pyproject.toml +37 -0
- package/skills/digital-marx/scripts/__pycache__/dialectical_thinking_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-marx/scripts/__pycache__/enhanced_historical_materialism_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-marx/scripts/__pycache__/historical_materialism_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-marx/scripts/basic_quality_detector.py +760 -0
- package/skills/digital-marx/scripts/dialectical_thinking_analyzer.py +1601 -0
- package/skills/digital-marx/scripts/enhanced_historical_materialism_analyzer.py +1525 -0
- package/skills/digital-marx/scripts/historical_materialism_analyzer.py +963 -0
- package/skills/digital-marx/scripts/integrated_marx_analyzer.py +932 -0
- package/skills/digital-marx/scripts/marxist_theory_validator.py +1192 -0
- package/skills/digital-marx/scripts/quality_validator.py +890 -0
- package/skills/digital-marx-expert/SKILL.md +179 -0
- package/skills/digital-marx-expert/modules/__pycache__/capital_analysis.cpython-312.pyc +0 -0
- package/skills/digital-marx-expert/modules/__pycache__/class_analysis.cpython-312.pyc +0 -0
- package/skills/digital-marx-expert/modules/__pycache__/historical_materialism.cpython-312.pyc +0 -0
- package/skills/digital-marx-expert/modules/capital_analysis.py +611 -0
- package/skills/digital-marx-expert/modules/class_analysis.py +836 -0
- package/skills/digital-marx-expert/modules/historical_materialism.py +435 -0
- package/skills/digital-marx-expert/pyproject.toml +29 -0
- package/skills/digital-marx-expert/scripts/digital_marx_expert_analyzer.py +189 -0
- package/skills/digital-marx-expert/test_input.json +100 -0
- package/skills/digital-marx-expert/test_output.json +588 -0
- package/skills/digital-transformation/business-innovation-pathway-planning.SKILL.md +102 -0
- package/skills/digital-transformation/business-model-reconstruction.SKILL.md +88 -0
- package/skills/digital-transformation/business-scene-deconstruction-analysis.SKILL.md +131 -0
- package/skills/digital-transformation/config.json +16 -0
- package/skills/digital-transformation/config_host_llm.json +311 -0
- package/skills/digital-transformation/config_llm.json +297 -0
- package/skills/digital-transformation/digitization-deconstruction-analysis.SKILL.md +84 -0
- package/skills/digital-transformation/innovation-niche-identification.SKILL.md +78 -0
- package/skills/digital-transformation/intelligent-transformation-deconstruction-analysis.SKILL.md +110 -0
- package/skills/digital-transformation/online-transformation-deconstruction-analysis.SKILL.md +110 -0
- package/skills/digital-transformation/scripts/data_integrator.py +637 -0
- package/skills/digital-transformation/scripts/digital_transformation_analyzer.py +800 -0
- package/skills/digital-transformation/scripts/digital_transformation_analyzer_agentskills_io.py +1677 -0
- package/skills/digital-transformation/scripts/digital_transformation_analyzer_host_cli.py +834 -0
- package/skills/digital-transformation/scripts/digital_transformation_analyzer_host_llm.py +1026 -0
- package/skills/digital-transformation/scripts/digital_transformation_analyzer_llm.py +957 -0
- package/skills/digital-transformation/scripts/host_cli_interface.py +531 -0
- package/skills/digital-transformation/scripts/llm_client.py +662 -0
- package/skills/digital-transformation/scripts/skill_executor.py +527 -0
- package/skills/digital-transformation/scripts/transformation_visualizer.py +946 -0
- package/skills/digital-transformation/test_context.json +6 -0
- package/skills/digital-transformation/tests/test_digital_transformation.py +844 -0
- package/skills/digital-weber/SKILL.md +88 -0
- package/skills/digital-weber/prompts/comparative-research.md +155 -0
- package/skills/digital-weber/prompts/institutional-analysis.md +147 -0
- package/skills/digital-weber/prompts/theoretical-interpretation.md +102 -0
- package/skills/digital-weber/prompts/understanding-analysis.md +129 -0
- package/skills/digital-weber/pyproject.toml +36 -0
- package/skills/digital-weber/scripts/__pycache__/integrated_weber_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-weber/scripts/__pycache__/optimized_weberian_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-weber/scripts/__pycache__/weberian_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-weber/scripts/enhanced_weberian_analyzer.py +531 -0
- package/skills/digital-weber/scripts/integrated_weber_analyzer.py +772 -0
- package/skills/digital-weber/scripts/optimized_weberian_analyzer.py +713 -0
- package/skills/digital-weber/scripts/weber_analysis_results.json +196 -0
- package/skills/digital-weber/scripts/weberian_analyzer.py +877 -0
- package/skills/digital-weber/simple_quality_test.py +204 -0
- package/skills/digital-weber/test_comprehensive.py +320 -0
- package/skills/digital-weber/test_quality_improvement.py +237 -0
- package/skills/dissent-resolution/SKILL.md +159 -0
- package/skills/ecosystem-analysis/analyzing-business-model-of-key-species.SKILL.md +31 -0
- package/skills/ecosystem-analysis/analyzing-digital-transformation-impact-on-business.SKILL.md +36 -0
- package/skills/ecosystem-analysis/assessing-ecosystem-impact-of-digital-transformation.SKILL.md +36 -0
- package/skills/ecosystem-analysis/config.json +15 -0
- package/skills/ecosystem-analysis/constructing-business-ecosystem-map.SKILL.md +31 -0
- package/skills/ecosystem-analysis/identifying-key-species-in-industry.SKILL.md +30 -0
- package/skills/ecosystem-analysis/performing-industry-ecosystem-analysis.SKILL.md +79 -0
- package/skills/ecosystem-analysis/references/industry-life-cycle.md +29 -0
- package/skills/ecosystem-analysis/references/value-chain-analysis.md +28 -0
- package/skills/ecosystem-analysis/scripts/business_ecosystem_analyzer.py +640 -0
- package/skills/ecosystem-analysis/scripts/data_collector.py +239 -0
- package/skills/ecosystem-analysis/scripts/ecosystem_analysis.py +309 -0
- package/skills/ecosystem-analysis/scripts/ecosystem_data_integrator.py +620 -0
- package/skills/ecosystem-analysis/scripts/ecosystem_preprocessing.py +262 -0
- package/skills/ecosystem-analysis/scripts/ecosystem_visualizer.py +811 -0
- package/skills/ecosystem-analysis/test_context.json +6 -0
- package/skills/ecosystem-analysis/tests/test_ecosystem_analysis.py +1193 -0
- package/skills/ecosystem-relationship-analysis/INFO.md +28 -0
- package/skills/ecosystem-relationship-analysis/SKILL.md +147 -0
- package/skills/ecosystem-relationship-analysis/algorithms/community_detection.py +128 -0
- package/skills/ecosystem-relationship-analysis/algorithms/health_assessment.py +53 -0
- package/skills/ecosystem-relationship-analysis/algorithms/network_analysis.py +171 -0
- package/skills/ecosystem-relationship-analysis/config.json +10 -0
- package/skills/ecosystem-relationship-analysis/references/community-detection.md +24 -0
- package/skills/ecosystem-relationship-analysis/references/ecosystem-theory.md +23 -0
- package/skills/ecosystem-relationship-analysis/references/health-assessment.md +23 -0
- package/skills/ecosystem-relationship-analysis/references/network-analysis-theory.md +19 -0
- package/skills/ecosystem-relationship-analysis/references/relationship-analysis.md +27 -0
- package/skills/ecosystem-relationship-analysis/scripts/ecosystem_relationship_analyzer.py +155 -0
- package/skills/ecosystem-relationship-analysis/skill.js +797 -0
- package/skills/ecosystem-relationship-analysis/skill.json +205 -0
- package/skills/field-analysis/SKILL.md +145 -0
- package/skills/field-boundary-identification/SKILL.md +156 -0
- package/skills/field-boundary-identification/pyproject.toml +36 -0
- package/skills/field-boundary-identification/scripts/identify_boundaries.py +326 -0
- package/skills/field-capital-analysis/SKILL.md +165 -0
- package/skills/field-expert/SKILL.md +409 -0
- package/skills/field-expert/WORKFLOW_SPEC.md +195 -0
- package/skills/field-expert/field_analysis_workflow/input/processed/combined_input.json +247 -0
- package/skills/field-expert/field_analysis_workflow/input/processed/llm_input.json +76 -0
- package/skills/field-expert/field_analysis_workflow/intermediate/01_boundary/boundary_results.json +6 -0
- package/skills/field-expert/field_analysis_workflow/intermediate/02_capital/capital_results.json +5 -0
- package/skills/field-expert/field_analysis_workflow/intermediate/03_habitus/habitus_results.json +120 -0
- package/skills/field-expert/field_analysis_workflow/intermediate/04_dynamics/dynamics_results.json +6 -0
- package/skills/field-expert/field_analysis_workflow/output/executive_summary.txt +35 -0
- package/skills/field-expert/field_analysis_workflow/output/json/comprehensive_analysis.json +180 -0
- package/skills/field-expert/field_analysis_workflow/output/reports/field_analysis_report.html +22 -0
- package/skills/field-expert/modules/__pycache__/boundary_analysis.cpython-312.pyc +0 -0
- package/skills/field-expert/modules/__pycache__/capital_analysis.cpython-312.pyc +0 -0
- package/skills/field-expert/modules/__pycache__/habitus_analysis.cpython-312.pyc +0 -0
- package/skills/field-expert/modules/boundary_analysis.py +234 -0
- package/skills/field-expert/modules/capital_analysis.py +407 -0
- package/skills/field-expert/modules/habitus_analysis.py +306 -0
- package/skills/field-expert/prompts/boundary_analysis.txt +56 -0
- package/skills/field-expert/prompts/boundary_analysis_simple.txt +17 -0
- package/skills/field-expert/prompts/capital_analysis.txt +87 -0
- package/skills/field-expert/prompts/dynamics_analysis.txt +89 -0
- package/skills/field-expert/prompts/habitus_analysis.txt +87 -0
- package/skills/field-expert/pyproject.toml +27 -0
- package/skills/field-expert/scripts/__pycache__/field_analysis_tool.cpython-312.pyc +0 -0
- package/skills/field-expert/scripts/__pycache__/prepare_data.cpython-312.pyc +0 -0
- package/skills/field-expert/scripts/debug_output.txt +4 -0
- package/skills/field-expert/scripts/debug_output_converted.txt +27 -0
- package/skills/field-expert/scripts/field_analysis_tool.py +536 -0
- package/skills/field-expert/scripts/field_expert_analyzer.py +136 -0
- package/skills/field-expert/scripts/generate_report.py +525 -0
- package/skills/field-expert/scripts/prepare_data.py +226 -0
- package/skills/field-expert/scripts/run_workflow.py +571 -0
- package/skills/field-expert/scripts/summarize_data.py +156 -0
- package/skills/field-expert/scripts/temp_prompt_20260106_213035_964505.txt +135 -0
- package/skills/field-expert/scripts/temp_prompt_20260106_213534_264265.txt +16 -0
- package/skills/field-expert/scripts/temp_prompt_20260106_213932_601575.txt +22 -0
- package/skills/field-expert/scripts/temp_prompt_20260106_214330_241706.txt +15 -0
- package/skills/field-expert/scripts/test_host_llm.py +164 -0
- package/skills/field-expert/scripts/test_stigmergy_llm.py +91 -0
- package/skills/field-expert/test_input.json +168 -0
- package/skills/field-expert/test_output.json +724 -0
- package/skills/field-expert/workflow_spec.json +171 -0
- package/skills/field-habitus-analysis/SKILL.md +165 -0
- package/skills/fsqca-analysis/SKILL.md +71 -0
- package/skills/fsqca-analysis/assets/templates/report_template.md +122 -0
- package/skills/fsqca-analysis/comprehensive_test.py +573 -0
- package/skills/fsqca-analysis/comprehensive_test_report.json +207 -0
- package/skills/fsqca-analysis/comprehensive_test_report.md +35 -0
- package/skills/fsqca-analysis/fsqca_analysis_report.md +35 -0
- package/skills/fsqca-analysis/prompts/calibration-guidance-outline.md +142 -0
- package/skills/fsqca-analysis/prompts/calibration-guidance.md +40 -0
- package/skills/fsqca-analysis/prompts/result-interpretation-outline.md +133 -0
- package/skills/fsqca-analysis/prompts/result-interpretation.md +45 -0
- package/skills/fsqca-analysis/prompts/theoretical-analysis-outline.md +75 -0
- package/skills/fsqca-analysis/prompts/theoretical-analysis.md +34 -0
- package/skills/fsqca-analysis/pyproject.toml +36 -0
- package/skills/fsqca-analysis/references/BEST_PRACTICES-outline.md +158 -0
- package/skills/fsqca-analysis/references/BEST_PRACTICES.md +39 -0
- package/skills/fsqca-analysis/references/METHODOLOGY-outline.md +103 -0
- package/skills/fsqca-analysis/references/METHODOLOGY.md +38 -0
- package/skills/fsqca-analysis/scripts/__pycache__/calibration.cpython-312.pyc +0 -0
- package/skills/fsqca-analysis/scripts/__pycache__/integrated_analysis.cpython-312.pyc +0 -0
- package/skills/fsqca-analysis/scripts/__pycache__/minimization.cpython-312.pyc +0 -0
- package/skills/fsqca-analysis/scripts/__pycache__/truth_table.cpython-312.pyc +0 -0
- package/skills/fsqca-analysis/scripts/calibration.py +540 -0
- package/skills/fsqca-analysis/scripts/integrated_analysis.py +651 -0
- package/skills/fsqca-analysis/scripts/minimization.py +536 -0
- package/skills/fsqca-analysis/scripts/truth_table.py +433 -0
- package/skills/fsqca-analysis/test_fsqca.py +199 -0
- package/skills/fusion_plan.md +232 -0
- package/skills/grounded-theory-expert/SKILL.md +180 -0
- package/skills/grounded-theory-expert/pyproject.toml +23 -0
- package/skills/grounded-theory-expert/scripts/gt_expert_analyzer.py +185 -0
- package/skills/grounded-theory-expert/stages/__pycache__/axial_coding.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert/stages/__pycache__/open_coding.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert/stages/__pycache__/selective_coding.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert/stages/axial_coding.py +294 -0
- package/skills/grounded-theory-expert/stages/open_coding.py +245 -0
- package/skills/grounded-theory-expert/stages/selective_coding.py +410 -0
- package/skills/grounded-theory-expert/test_input.json +27 -0
- package/skills/grounded-theory-expert/test_output.json +874 -0
- package/skills/grounded-theory-expert/tests/sample-cases/hongloumeng.txt +91 -0
- package/skills/grounded-theory-expert/tests/sample-cases/sanguoyanyi_excerpts.txt +169 -0
- package/skills/grounded-theory-expert/tests/sample-cases/shuihuzhuan_excerpts.txt +216 -0
- package/skills/grounded-theory-expert/tests/sample-cases/xiyouji_excerpts.txt +100 -0
- package/skills/grounded-theory-expert/tests/sample-cases//345/233/233/345/244/247/345/220/215/350/221/227ANT/345/210/206/346/236/220/346/212/245/345/221/212.md +283 -0
- package/skills/grounded-theory-expert/tools/__pycache__/memo_writer.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert/tools/__pycache__/saturation_checker.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert/tools/memo_writer.py +512 -0
- package/skills/grounded-theory-expert/tools/saturation_checker.py +345 -0
- package/skills/grounded-theory-expert-enhanced/SKILL.md +218 -0
- package/skills/grounded-theory-expert-enhanced/docs/00_master_guide.md +276 -0
- package/skills/grounded-theory-expert-enhanced/docs/01_quick_start.md +59 -0
- package/skills/grounded-theory-expert-enhanced/docs/02_task_flow.md +464 -0
- package/skills/grounded-theory-expert-enhanced/docs/03_path/350/247/204/350/214/203.md +161 -0
- package/skills/grounded-theory-expert-enhanced/docs/04_html_report.md +340 -0
- package/skills/grounded-theory-expert-enhanced/docs/05_best_practices.md +322 -0
- package/skills/grounded-theory-expert-enhanced/docs/FLOW_GUIDE.md +280 -0
- package/skills/grounded-theory-expert-enhanced/docs/LLM/350/260/203/347/224/250/346/250/241/346/213/237/346/265/201/347/250/213.md +299 -0
- package/skills/grounded-theory-expert-enhanced/docs/experts/constructivist_expert.md +64 -0
- package/skills/grounded-theory-expert-enhanced/docs/experts/localization_expert.md +66 -0
- package/skills/grounded-theory-expert-enhanced/docs/experts/phenomenological_expert.md +64 -0
- package/skills/grounded-theory-expert-enhanced/docs/experts/positivist_expert.md +67 -0
- package/skills/grounded-theory-expert-enhanced/docs/prompts/level1_prompts.md +174 -0
- package/skills/grounded-theory-expert-enhanced/docs/prompts/level2_prompts.md +176 -0
- package/skills/grounded-theory-expert-enhanced/docs/prompts/level3_prompts.md +219 -0
- package/skills/grounded-theory-expert-enhanced/docs/prompts/preprocessing_prompts.md +120 -0
- package/skills/grounded-theory-expert-enhanced/docs/references/quality_standards.md +166 -0
- package/skills/grounded-theory-expert-enhanced/docs/references/reliability_methods.md +159 -0
- package/skills/grounded-theory-expert-enhanced/docs/references/saturation_methods.md +193 -0
- package/skills/grounded-theory-expert-enhanced/docs/references/theory_construction.md +166 -0
- package/skills/grounded-theory-expert-enhanced/pyproject.toml +33 -0
- package/skills/grounded-theory-expert-enhanced/references/llm_integration_principles.md +56 -0
- package/skills/grounded-theory-expert-enhanced/scripts/preprocessing_script.py +191 -0
- package/skills/grounded-theory-expert-enhanced/stages/enhanced_axial_coding.py +146 -0
- package/skills/grounded-theory-expert-enhanced/stages/enhanced_open_coding.py +94 -0
- package/skills/grounded-theory-expert-enhanced/stages/enhanced_selective_coding.py +163 -0
- package/skills/grounded-theory-expert-enhanced/tools/.env.example +34 -0
- package/skills/grounded-theory-expert-enhanced/tools/LLM_CONFIG_GUIDE.md +67 -0
- package/skills/grounded-theory-expert-enhanced/tools/__pycache__/analysis_controller.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert-enhanced/tools/__pycache__/host_cli_coder.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert-enhanced/tools/__pycache__/llm_expert_coder.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert-enhanced/tools/__pycache__/project_structure.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert-enhanced/tools/__pycache__/reliability_validator.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert-enhanced/tools/analysis_controller.py +2344 -0
- package/skills/grounded-theory-expert-enhanced/tools/enhanced_memo_writer.py +90 -0
- package/skills/grounded-theory-expert-enhanced/tools/enhanced_saturation_checker.py +216 -0
- package/skills/grounded-theory-expert-enhanced/tools/fix_dirs.py +48 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/00_raw_data/source_document.txt +91 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/01_preprocessing/preprocessing_report.json +15 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/01_preprocessing/text_cleaned/cleaned_text.txt +198 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/01_preprocessing/text_tokenized/tokenized_text.json +1099 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_1%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_1%/segment_text.txt +20 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_2%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_2%/segment_text.txt +21 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_3%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_3%/segment_text.txt +23 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_70%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_70%/segment_text.txt +135 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segmentation_summary.json +34 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_constructivist/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_constructivist/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_constructivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_localization/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_localization/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_localization/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_phenomenological/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_phenomenological/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_phenomenological/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_positivist/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_positivist/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_positivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/level1_all_experts_summary.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_achievement/consensus_report.json +13 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_achievement/merged_concept_library.json +308 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_calculation/cohens_kappa.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_calculation/fleiss_kappa.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_calculation/krippendorff_alpha.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/expert_constructivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/expert_localization/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/expert_phenomenological/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/expert_positivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/level2_all_experts_summary.json +31 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/06_level2_consensus/divergence_resolution/divergence_report.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/06_level2_consensus/divergence_resolution/merged_category_library.json +7 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/06_level2_consensus/divergence_resolution/paradigm_model.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/expert_constructivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/expert_localization/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/expert_phenomenological/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/expert_positivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/level3_all_experts_summary.json +30 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/08_level3_consensus/consensus_calculation/core_category_comparison.json +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/08_level3_consensus/theoretical_integration/final_theoretical_integration.json +52 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/08_level3_consensus/theoretical_integration/theory_description.md +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/final_saturation_verdict.json +32 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/iteration_100/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/iteration_70/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/iteration_80/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/iteration_90/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/10_final_report/codebook.md +84 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/10_final_report/comprehensive_analysis_report.md +360 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/10_final_report/project_summary.json +214 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/10_final_report/theory_description.md +91 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/config.json +68 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/project_manifest.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/host_cli_coder.py +168 -0
- package/skills/grounded-theory-expert-enhanced/tools/llm_expert_coder.py +469 -0
- package/skills/grounded-theory-expert-enhanced/tools/project_structure.py +1202 -0
- package/skills/grounded-theory-expert-enhanced/tools/reliability_validator.py +800 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/00_raw_data/source_document.txt +169 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/01_preprocessing/preprocessing_report.json +15 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/01_preprocessing/text_cleaned/cleaned_text.txt +200 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/01_preprocessing/text_tokenized/tokenized_text.json +1109 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_1%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_1%/segment_text.txt +22 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_2%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_2%/segment_text.txt +18 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_3%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_3%/segment_text.txt +24 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_70%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_70%/segment_text.txt +134 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segmentation_summary.json +34 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_constructivist/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_constructivist/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_constructivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_localization/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_localization/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_localization/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_phenomenological/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_phenomenological/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_phenomenological/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_positivist/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_positivist/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_positivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/level1_all_experts_summary.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_achievement/consensus_report.json +13 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_achievement/merged_concept_library.json +308 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_calculation/cohens_kappa.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_calculation/fleiss_kappa.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_calculation/krippendorff_alpha.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/expert_constructivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/expert_localization/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/expert_phenomenological/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/expert_positivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/level2_all_experts_summary.json +31 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/06_level2_consensus/divergence_resolution/divergence_report.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/06_level2_consensus/divergence_resolution/merged_category_library.json +7 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/06_level2_consensus/divergence_resolution/paradigm_model.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/expert_constructivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/expert_localization/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/expert_phenomenological/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/expert_positivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/level3_all_experts_summary.json +30 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/08_level3_consensus/consensus_calculation/core_category_comparison.json +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/08_level3_consensus/theoretical_integration/final_theoretical_integration.json +52 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/08_level3_consensus/theoretical_integration/theory_description.md +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/final_saturation_verdict.json +32 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/iteration_100/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/iteration_70/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/iteration_80/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/iteration_90/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/10_final_report/codebook.md +84 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/10_final_report/comprehensive_analysis_report.md +360 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/10_final_report/project_summary.json +214 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/10_final_report/theory_description.md +91 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/config.json +68 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/project_manifest.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_claude.py +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_host_cli_coder.py +168 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/00_raw_data/source_document.txt +11 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/01_preprocessing/preprocessing_report.json +15 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/01_preprocessing/text_cleaned/cleaned_text.txt +16 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/01_preprocessing/text_tokenized/tokenized_text.json +129 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_1%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_1%/segment_text.txt +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_2%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_2%/segment_text.txt +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_3%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_3%/segment_text.txt +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_70%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_70%/segment_text.txt +11 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segmentation_summary.json +34 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_constructivist/initial_concepts.json +218 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_constructivist/open_coding_results.json +226 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_constructivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_localization/initial_concepts.json +218 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_localization/open_coding_results.json +226 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_localization/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_phenomenological/initial_concepts.json +218 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_phenomenological/open_coding_results.json +226 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_phenomenological/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_positivist/initial_concepts.json +218 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_positivist/open_coding_results.json +226 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_positivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/level1_all_experts_summary.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_achievement/consensus_report.json +13 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_achievement/merged_concept_library.json +278 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_calculation/cohens_kappa.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_calculation/fleiss_kappa.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_calculation/krippendorff_alpha.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/expert_constructivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/expert_localization/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/expert_phenomenological/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/expert_positivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/level2_all_experts_summary.json +31 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/06_level2_consensus/divergence_resolution/divergence_report.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/06_level2_consensus/divergence_resolution/merged_category_library.json +7 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/06_level2_consensus/divergence_resolution/paradigm_model.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/expert_constructivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/expert_localization/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/expert_phenomenological/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/expert_positivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/level3_all_experts_summary.json +30 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/08_level3_consensus/consensus_calculation/core_category_comparison.json +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/08_level3_consensus/theoretical_integration/final_theoretical_integration.json +52 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/08_level3_consensus/theoretical_integration/theory_description.md +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/final_saturation_verdict.json +32 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/iteration_100/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/iteration_70/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/iteration_80/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/iteration_90/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/10_final_report/codebook.md +84 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/10_final_report/comprehensive_analysis_report.md +360 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/10_final_report/project_summary.json +214 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/10_final_report/theory_description.md +91 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/config.json +68 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/project_manifest.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_real_coding.py +135 -0
- package/skills/historical-materialist-analysis/SKILL.md +186 -0
- package/skills/information-verification/INFO.md +69 -0
- package/skills/information-verification/README.md +80 -0
- package/skills/information-verification/SKILL.md +305 -0
- package/skills/information-verification/prompts.txt +103 -0
- package/skills/information-verification/reference.md +212 -0
- package/skills/information-verification/skill.js +1056 -0
- package/skills/information-verification/skill.json +198 -0
- package/skills/management-theory-analysis/INFO.md +74 -0
- package/skills/management-theory-analysis/README.md +63 -0
- package/skills/management-theory-analysis/SKILL.md +361 -0
- package/skills/management-theory-analysis/prompts.txt +113 -0
- package/skills/management-theory-analysis/reference.md +167 -0
- package/skills/management-theory-analysis/skill.js +561 -0
- package/skills/management-theory-analysis/skill.json +223 -0
- package/skills/mathematical-statistics/SKILL.md +227 -0
- package/skills/mathematical-statistics/pyproject.toml +36 -0
- package/skills/mathematical-statistics/scripts/statistics_toolkit.py +270 -0
- package/skills/msqca-analysis/SKILL.md +261 -0
- package/skills/msqca-analysis/assets/templates/data_template.csv +11 -0
- package/skills/msqca-analysis/assets/templates/report_template.md +188 -0
- package/skills/msqca-analysis/integrated_analysis_report.md +35 -0
- package/skills/msqca-analysis/prompts/calibration-guidance.md +251 -0
- package/skills/msqca-analysis/prompts/result-interpretation.md +253 -0
- package/skills/msqca-analysis/prompts/theoretical-analysis.md +172 -0
- package/skills/msqca-analysis/pyproject.toml +37 -0
- package/skills/msqca-analysis/references/BEST_PRACTICES.md +612 -0
- package/skills/msqca-analysis/references/METHODOLOGY.md +282 -0
- package/skills/msqca-analysis/scripts/__pycache__/calibration.cpython-312.pyc +0 -0
- package/skills/msqca-analysis/scripts/__pycache__/integrated_analysis.cpython-312.pyc +0 -0
- package/skills/msqca-analysis/scripts/__pycache__/minimization.cpython-312.pyc +0 -0
- package/skills/msqca-analysis/scripts/__pycache__/truth_table.cpython-312.pyc +0 -0
- package/skills/msqca-analysis/scripts/calibration.py +341 -0
- package/skills/msqca-analysis/scripts/integrated_analysis.py +621 -0
- package/skills/msqca-analysis/scripts/integrated_analysis_report.md +35 -0
- package/skills/msqca-analysis/scripts/minimization.py +580 -0
- package/skills/msqca-analysis/scripts/truth_table.py +438 -0
- package/skills/network-computation/SKILL.md +270 -0
- package/skills/network-computation/pyproject.toml +34 -0
- package/skills/network-computation/scripts/calculate_centrality.py +213 -0
- package/skills/network-computation-expert/SKILL.md +183 -0
- package/skills/network-computation-expert/modules/__pycache__/centrality_analysis.cpython-312.pyc +0 -0
- package/skills/network-computation-expert/modules/__pycache__/community_detection.cpython-312.pyc +0 -0
- package/skills/network-computation-expert/modules/__pycache__/data_processing.cpython-312.pyc +0 -0
- package/skills/network-computation-expert/modules/__pycache__/network_construction.cpython-312.pyc +0 -0
- package/skills/network-computation-expert/modules/centrality_analysis.py +438 -0
- package/skills/network-computation-expert/modules/community_detection.py +467 -0
- package/skills/network-computation-expert/modules/data_processing.py +467 -0
- package/skills/network-computation-expert/modules/network_construction.py +460 -0
- package/skills/network-computation-expert/pyproject.toml +27 -0
- package/skills/network-computation-expert/scripts/network_computation_expert_analyzer.py +208 -0
- package/skills/network-computation-expert/test_input.json +140 -0
- package/skills/network-computation-expert/test_output.json +627 -0
- package/skills/operations-analysis/INFO.md +76 -0
- package/skills/operations-analysis/README.md +61 -0
- package/skills/operations-analysis/SKILL.md +365 -0
- package/skills/operations-analysis/prompts.txt +109 -0
- package/skills/operations-analysis/pyproject.toml +35 -0
- package/skills/operations-analysis/reference.md +178 -0
- package/skills/operations-analysis/skill.js +870 -0
- package/skills/operations-analysis/skill.json +219 -0
- package/skills/patent-downloader/README.md +358 -0
- package/skills/patent-downloader/SKILL.md +309 -0
- package/skills/patent-downloader/assets/README_TEMPLATE.md +140 -0
- package/skills/patent-downloader/assets/requirements.txt +5 -0
- package/skills/patent-downloader/references/google_patents.md +210 -0
- package/skills/patent-downloader/scripts/patent_server.py +279 -0
- package/skills/performing-axial-coding/SKILL.md +301 -0
- package/skills/performing-axial-coding/pyproject.toml +30 -0
- package/skills/performing-axial-coding/references/README.md +111 -0
- package/skills/performing-axial-coding/references/_BACKUP_paradigm-theory.md +375 -0
- package/skills/performing-axial-coding/references/_BACKUP_relationship-types.md +544 -0
- package/skills/performing-axial-coding/references/_BACKUP_troubleshooting.md +627 -0
- package/skills/performing-axial-coding/references/category-construction/INDEX.md +190 -0
- package/skills/performing-axial-coding/references/category-construction/complete-example.md +438 -0
- package/skills/performing-axial-coding/references/paradigm-theory/INDEX.md +181 -0
- package/skills/performing-axial-coding/references/paradigm-theory/chinese-adaptation.md +349 -0
- package/skills/performing-axial-coding/references/paradigm-theory/quality-standards.md +345 -0
- package/skills/performing-axial-coding/references/paradigm-theory/six-components.md +323 -0
- package/skills/performing-axial-coding/references/relationship-types/INDEX.md +126 -0
- package/skills/performing-axial-coding/references/relationship-types/causal.md +141 -0
- package/skills/performing-axial-coding/references/relationship-types/conditional.md +150 -0
- package/skills/performing-axial-coding/references/troubleshooting/INDEX.md +136 -0
- package/skills/performing-axial-coding/references/troubleshooting/category-issues.md +129 -0
- package/skills/performing-axial-coding/references/troubleshooting/relationship-issues.md +137 -0
- package/skills/performing-axial-coding/references/troubleshooting/technical-issues.md +184 -0
- package/skills/performing-axial-coding/scripts/__pycache__/build_relationships.cpython-312.pyc +0 -0
- package/skills/performing-axial-coding/scripts/__pycache__/construct_paradigm.cpython-312.pyc +0 -0
- package/skills/performing-axial-coding/scripts/__pycache__/identify_categories.cpython-312.pyc +0 -0
- package/skills/performing-axial-coding/scripts/build_relationships.py +314 -0
- package/skills/performing-axial-coding/scripts/categories_test.json +122 -0
- package/skills/performing-axial-coding/scripts/construct_paradigm.py +271 -0
- package/skills/performing-axial-coding/scripts/identify_categories.py +267 -0
- package/skills/performing-axial-coding/tests/test_integration.py +84 -0
- package/skills/performing-centrality-analysis/SKILL.md +210 -0
- package/skills/performing-centrality-analysis/pyproject.toml +21 -0
- package/skills/performing-centrality-analysis/references/README.md +60 -0
- package/skills/performing-centrality-analysis/references/centrality-theory/INDEX.md +136 -0
- package/skills/performing-centrality-analysis/references/chinese-context/INDEX.md +169 -0
- package/skills/performing-centrality-analysis/scripts/__pycache__/calculate_centrality.cpython-312.pyc +0 -0
- package/skills/performing-centrality-analysis/scripts/calculate_centrality.py +213 -0
- package/skills/performing-centrality-analysis/tests/__pycache__/test_calculate_centrality.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/performing-centrality-analysis/tests/test_calculate_centrality.py +218 -0
- package/skills/performing-network-computation/SKILL.md +224 -0
- package/skills/performing-network-computation/pyproject.toml +34 -0
- package/skills/performing-network-computation/scripts/build_network.py +260 -0
- package/skills/performing-network-computation/scripts/calculate_metrics.py +236 -0
- package/skills/performing-network-computation/scripts/detect_communities.py +281 -0
- package/skills/performing-network-computation/scripts/visualize_network.py +272 -0
- package/skills/performing-open-coding/SKILL.md +299 -0
- package/skills/performing-open-coding/pyproject.toml +35 -0
- package/skills/performing-open-coding/references/chinese-context.md +270 -0
- package/skills/performing-open-coding/references/examples.md +338 -0
- package/skills/performing-open-coding/references/theory.md +215 -0
- package/skills/performing-open-coding/references/troubleshooting.md +491 -0
- package/skills/performing-open-coding/scripts/__pycache__/auto_loader.cpython-312.pyc +0 -0
- package/skills/performing-open-coding/scripts/__pycache__/compare_codes.cpython-312.pyc +0 -0
- package/skills/performing-open-coding/scripts/__pycache__/preprocess_text.cpython-312.pyc +0 -0
- package/skills/performing-open-coding/scripts/auto_loader.py +195 -0
- package/skills/performing-open-coding/scripts/cluster_concepts.py +294 -0
- package/skills/performing-open-coding/scripts/clusters_test.json +169 -0
- package/skills/performing-open-coding/scripts/compare_codes.py +257 -0
- package/skills/performing-open-coding/scripts/comparison_test.json +19 -0
- package/skills/performing-open-coding/scripts/concepts_test.json +135 -0
- package/skills/performing-open-coding/scripts/preprocess_text.py +218 -0
- package/skills/performing-open-coding/scripts/test_output.json +134 -0
- package/skills/performing-open-coding/scripts/validate_codes.py +302 -0
- package/skills/performing-open-coding/scripts/validation_test.json +95 -0
- package/skills/performing-open-coding/tests/__pycache__/test_auto_loader.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/performing-open-coding/tests/__pycache__/test_preprocess.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/performing-open-coding/tests/run_integration_tests.py +148 -0
- package/skills/performing-open-coding/tests/test_auto_loader.py +233 -0
- package/skills/performing-open-coding/tests/test_compare_codes.py +336 -0
- package/skills/performing-open-coding/tests/test_preprocess.py +187 -0
- package/skills/performing-selective-coding/SKILL.md +305 -0
- package/skills/performing-selective-coding/pyproject.toml +21 -0
- package/skills/performing-selective-coding/references/README.md +86 -0
- package/skills/performing-selective-coding/references/core-category/INDEX.md +132 -0
- package/skills/performing-selective-coding/references/saturation/INDEX.md +153 -0
- package/skills/performing-selective-coding/references/storyline/INDEX.md +166 -0
- package/skills/performing-selective-coding/references/theory-integration/INDEX.md +203 -0
- package/skills/performing-selective-coding/scripts/README.md +101 -0
- package/skills/performing-selective-coding/scripts/__pycache__/check_saturation.cpython-312.pyc +0 -0
- package/skills/performing-selective-coding/scripts/__pycache__/identify_core_category.cpython-312.pyc +0 -0
- package/skills/performing-selective-coding/scripts/check_saturation.py +236 -0
- package/skills/performing-selective-coding/scripts/construct_storyline.py +237 -0
- package/skills/performing-selective-coding/scripts/identify_core_category.py +265 -0
- package/skills/performing-selective-coding/scripts/integrate_theory.py +173 -0
- package/skills/performing-selective-coding/tests/__pycache__/test_check_saturation.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/performing-selective-coding/tests/__pycache__/test_identify_core_category.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/performing-selective-coding/tests/test_check_saturation.py +157 -0
- package/skills/performing-selective-coding/tests/test_identify_core_category.py +157 -0
- package/skills/practical-marxist-application/SKILL.md +230 -0
- package/skills/processing-network-data/SKILL.md +146 -0
- package/skills/processing-network-data/pyproject.toml +33 -0
- package/skills/processing-network-data/scripts/clean_survey_data.py +285 -0
- package/skills/processing-network-data/scripts/extract_network_data.py +286 -0
- package/skills/processing-network-data/scripts/transform_data_format.py +334 -0
- package/skills/processing-network-data/scripts/validate_network_data.py +322 -0
- package/skills/pubscholar-auto-search/AGENTSKILLS_OPTIMIZATION_REPORT.md +540 -0
- package/skills/pubscholar-auto-search/README.md +66 -0
- package/skills/pubscholar-auto-search/SKILL.md +242 -0
- package/skills/pubscholar-auto-search/references/API_REFERENCE.md +349 -0
- package/skills/pubscholar-auto-search/references/DEVELOPMENT.md +395 -0
- package/skills/pubscholar-auto-search/references/EXTENSION_STRATEGIES.md +415 -0
- package/skills/pubscholar-auto-search/references/USER_GUIDE.md +432 -0
- package/skills/pubscholar-auto-search/requirements.txt +17 -0
- package/skills/pubscholar-auto-search/scripts/__pycache__/pubscholar_searcher.cpython-312.pyc +0 -0
- package/skills/pubscholar-auto-search/scripts/pubscholar_searcher.py +602 -0
- package/skills/pubscholar-auto-search/scripts/test_pubscholar_search.py +205 -0
- package/skills/research-design/DEPENDENCY_MANAGEMENT.md +112 -0
- package/skills/research-design/README.md +158 -0
- package/skills/research-design/SKILL.md +82 -0
- package/skills/research-design/assets/templates/research_design_template.md +297 -0
- package/skills/research-design/prompts/analysis-strategy-outline.md +307 -0
- package/skills/research-design/prompts/analysis-strategy.md +37 -0
- package/skills/research-design/prompts/data-planning-outline.md +204 -0
- package/skills/research-design/prompts/data-planning.md +36 -0
- package/skills/research-design/prompts/ethics-review-outline.md +406 -0
- package/skills/research-design/prompts/ethics-review.md +36 -0
- package/skills/research-design/prompts/method-selection-outline.md +181 -0
- package/skills/research-design/prompts/method-selection.md +36 -0
- package/skills/research-design/prompts/problem-definition-outline.md +107 -0
- package/skills/research-design/prompts/problem-definition.md +30 -0
- package/skills/research-design/pyproject.toml +35 -0
- package/skills/research-design/references/best-practices.md +185 -0
- package/skills/research-design/references/methodology.md +162 -0
- package/skills/research-design/scripts/__pycache__/design_evaluation.cpython-312.pyc +0 -0
- package/skills/research-design/scripts/__pycache__/integrated_analysis.cpython-312.pyc +0 -0
- package/skills/research-design/scripts/__pycache__/literature_analysis.cpython-312.pyc +0 -0
- package/skills/research-design/scripts/__pycache__/method_matching.cpython-312.pyc +0 -0
- package/skills/research-design/scripts/design_evaluation.py +670 -0
- package/skills/research-design/scripts/integrated_analysis.py +543 -0
- package/skills/research-design/scripts/literature_analysis.py +303 -0
- package/skills/research-design/scripts/method_matching.py +478 -0
- package/skills/research-design/test_research_design.py +281 -0
- package/skills/sna-analysis/integration_with_trusted_scraper.md +115 -0
- package/skills/spark-integration/INFO.md +64 -0
- package/skills/spark-integration/README.md +159 -0
- package/skills/spark-integration/SKILL.md +232 -0
- package/skills/spark-integration/skill.js +308 -0
- package/skills/spark-integration/skill.json +37 -0
- package/skills/trusted-web-scraper/CONFIG.yaml +60 -0
- package/skills/trusted-web-scraper/README.md +137 -0
- package/skills/trusted-web-scraper/SKILL.md +173 -0
- package/skills/trusted-web-scraper/final_test.json +240 -0
- package/skills/trusted-web-scraper/modules/__pycache__/core_trusted_scraper.cpython-312.pyc +0 -0
- package/skills/trusted-web-scraper/modules/__pycache__/scraper.cpython-312.pyc +0 -0
- package/skills/trusted-web-scraper/modules/__pycache__/trusted_web_scraper.cpython-312.pyc +0 -0
- package/skills/trusted-web-scraper/modules/core_trusted_scraper.py +778 -0
- package/skills/trusted-web-scraper/modules/scraper_minimal.py +623 -0
- package/skills/trusted-web-scraper/pyproject.toml +46 -0
- package/skills/trusted-web-scraper/scripts/__pycache__/trusted_web_scraper.cpython-312.pyc +0 -0
- package/skills/trusted-web-scraper/scripts/trusted_web_scraper.py +109 -0
- package/skills/trusted-web-scraper/test_comprehensive.py +53 -0
- package/skills/trusted-web-scraper/test_full.py +154 -0
- package/skills/trusted-web-scraper/test_input.json +10 -0
- package/skills/trusted-web-scraper/test_output.json +162 -0
- package/skills/trusted-web-scraper/test_output2.json +240 -0
- package/skills/trusted-web-scraper/test_output3.json +240 -0
- package/skills/trusted-web-scraper/test_output4.json +240 -0
- package/skills/validity-reliability/SKILL.md +130 -0
- package/skills/validity-reliability/pyproject.toml +36 -0
- package/skills/validity-reliability/scripts/validity_reliability_toolkit.py +480 -0
- package/skills/verify_compliance.ps1 +40 -0
- package/skills/visualization-expert/INFO.md +77 -0
- package/skills/visualization-expert/README.md +78 -0
- package/skills/visualization-expert/SKILL.md +374 -0
- package/skills/visualization-expert/prompts.txt +92 -0
- package/skills/visualization-expert/reference.md +212 -0
- package/skills/visualization-expert/skill.js +904 -0
- package/skills/visualization-expert/skill.json +195 -0
- package/skills/writing-grounded-theory-memos/SKILL.md +301 -0
|
@@ -0,0 +1,1192 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
"""
|
|
4
|
+
马克思主义理论准确性验证器 - 基于经典文献和权威标准的严格验证
|
|
5
|
+
确保算法与准确的理论标准对齐,避免常见的理论错误
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import pandas as pd
|
|
9
|
+
import numpy as np
|
|
10
|
+
from typing import Dict, List, Optional, Any, Tuple
|
|
11
|
+
import re
|
|
12
|
+
from dataclasses import dataclass
|
|
13
|
+
from enum import Enum
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class TheoryAccuracyLevel(Enum):
|
|
17
|
+
"""理论准确性等级"""
|
|
18
|
+
EXCELLENT = "优秀"
|
|
19
|
+
GOOD = "良好"
|
|
20
|
+
AVERAGE = "一般"
|
|
21
|
+
POOR = "不足"
|
|
22
|
+
SERIOUS_ERROR = "严重错误"
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@dataclass
|
|
26
|
+
class TheoryError:
|
|
27
|
+
"""理论错误"""
|
|
28
|
+
error_type: str
|
|
29
|
+
description: str
|
|
30
|
+
severity: str
|
|
31
|
+
correction: str
|
|
32
|
+
reference: str
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class MarxistTheoryValidator:
|
|
36
|
+
"""马克思主义理论准确性验证器"""
|
|
37
|
+
|
|
38
|
+
def __init__(self):
|
|
39
|
+
# 经典理论定义库
|
|
40
|
+
self.classic_definitions = self._load_classic_definitions()
|
|
41
|
+
|
|
42
|
+
# 常见错误模式库
|
|
43
|
+
self.common_errors = self._load_common_errors()
|
|
44
|
+
|
|
45
|
+
# 理论准确性标准
|
|
46
|
+
self.accuracy_standards = self._load_accuracy_standards()
|
|
47
|
+
|
|
48
|
+
# 验证历史
|
|
49
|
+
self.validation_history = []
|
|
50
|
+
|
|
51
|
+
def _load_classic_definitions(self) -> Dict:
|
|
52
|
+
"""加载经典理论定义"""
|
|
53
|
+
return {
|
|
54
|
+
# 生产力定义
|
|
55
|
+
'productive_forces': {
|
|
56
|
+
'classic_definition': '生产力是人类改造自然的能力,包括劳动者、劳动资料、劳动对象三个基本要素',
|
|
57
|
+
'essential_elements': ['劳动者', '劳动资料', '劳动对象'],
|
|
58
|
+
'not_equivalent_to': ['技术', '经济水平', 'GDP', '发展水平'],
|
|
59
|
+
'key_characteristics': ['社会性', '历史性', '客观性'],
|
|
60
|
+
'classical_source': '《资本论》第一卷'
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
# 生产关系定义
|
|
64
|
+
'relations_of_production': {
|
|
65
|
+
'classic_definition': '生产关系是人们在物质生产过程中结成的社会关系,是生产的社会形式',
|
|
66
|
+
'essential_elements': ['生产资料所有制形式', '人们在生产中的地位', '产品分配方式'],
|
|
67
|
+
'not_equivalent_to': ['收入分配', '贫富差距', '经济关系'],
|
|
68
|
+
'key_characteristics': ['物质性', '社会性', '历史性'],
|
|
69
|
+
'classical_source': '《德意志意识形态》'
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
# 矛盾定义
|
|
73
|
+
'contradiction': {
|
|
74
|
+
'classic_definition': '矛盾是指事物内部包含的既对立又统一的关系,是事物发展的根本动力',
|
|
75
|
+
'essential_elements': ['对立性', '统一性', '相互依存', '相互转化'],
|
|
76
|
+
'not_equivalent_to': ['冲突', '斗争', '分歧', '差异'],
|
|
77
|
+
'key_characteristics': ['普遍性', '客观性', '发展性'],
|
|
78
|
+
'classical_source': '《矛盾论》'
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
# 辩证法定义
|
|
82
|
+
'dialectics': {
|
|
83
|
+
'classic_definition': '辩证法是关于自然、社会和思维发展的普遍规律的科学,是认识世界和改造世界的根本方法',
|
|
84
|
+
'essential_elements': ['对立统一规律', '量变质变规律', '否定之否定规律'],
|
|
85
|
+
'not_equivalent_to': ['变化规律', '发展规律', '进化论'],
|
|
86
|
+
'key_characteristics': ['科学性', '革命性', '实践性'],
|
|
87
|
+
'classical_source': '《反杜林论》'
|
|
88
|
+
},
|
|
89
|
+
|
|
90
|
+
# 阶级定义
|
|
91
|
+
'class': {
|
|
92
|
+
'classic_definition': '阶级是在生产资料占有关系中处于不同地位的社会集团',
|
|
93
|
+
'essential_elements': ['生产资料占有关系', '社会地位', '根本利益'],
|
|
94
|
+
'not_equivalent_to': ['收入群体', '贫富群体', '职业群体'],
|
|
95
|
+
'key_characteristics': ['历史性', '对抗性', '集团性'],
|
|
96
|
+
'classical_source': '《共产党宣言》'
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
# 经济基础定义
|
|
100
|
+
'economic_base': {
|
|
101
|
+
'classic_definition': '经济基础是社会发展一定阶段上的生产关系的总和',
|
|
102
|
+
'essential_elements': ['生产关系总和', '社会形式', '制度基础'],
|
|
103
|
+
'not_equivalent_to': ['经济水平', 'GDP', '经济实力'],
|
|
104
|
+
'key_characteristics': ['基础性', '决定性', '社会性'],
|
|
105
|
+
'classical_source': '《政治经济学批判》序言'
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
# 上层建筑定义
|
|
109
|
+
'superstructure': {
|
|
110
|
+
'classic_definition': '上层建筑是建立在经济基础之上的意识形态、政治法律制度及设施',
|
|
111
|
+
'essential_elements': ['政治制度', '法律制度', '意识形态', '文化设施'],
|
|
112
|
+
'not_equivalent_to': ['政治制度', '法律体系', '文化'],
|
|
113
|
+
'key_characteristics': ['相对独立性', '反作用性', '社会性'],
|
|
114
|
+
'classical_source': '《政治经济学批判》序言'
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
def _load_common_errors(self) -> Dict:
|
|
119
|
+
"""加载常见错误模式"""
|
|
120
|
+
return {
|
|
121
|
+
'concept_confusion': {
|
|
122
|
+
'生产力_vs_技术': {
|
|
123
|
+
'error': '将生产力等同于技术发展',
|
|
124
|
+
'correction': '生产力包括劳动者、劳动资料、劳动对象三要素,技术只是劳动资料的组成部分',
|
|
125
|
+
'severity': 'high'
|
|
126
|
+
},
|
|
127
|
+
'经济_base_vs_economy': {
|
|
128
|
+
'error': '将经济基础等同于经济发展水平',
|
|
129
|
+
'correction': '经济基础是生产关系的总和,不等于经济发展水平或GDP',
|
|
130
|
+
'severity': 'high'
|
|
131
|
+
},
|
|
132
|
+
'class_vs_income': {
|
|
133
|
+
'error': '按收入水平划分阶级',
|
|
134
|
+
'correction': '阶级划分依据是生产资料占有关系,而非收入水平',
|
|
135
|
+
'severity': 'high'
|
|
136
|
+
},
|
|
137
|
+
'contradiction_vs_conflict': {
|
|
138
|
+
'error': '将矛盾等同于简单的冲突',
|
|
139
|
+
'correction': '矛盾是对立统一的关系,既对立又统一,比冲突更深刻',
|
|
140
|
+
'severity': 'high'
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
'principle_simplification': {
|
|
145
|
+
'determinism': {
|
|
146
|
+
'error': '绝对化的生产力决定论或经济基础决定论',
|
|
147
|
+
'correction': '生产力决定生产关系,但生产关系对生产力有反作用;经济基础决定上层建筑,但上层建筑有相对独立性',
|
|
148
|
+
'severity': 'high'
|
|
149
|
+
},
|
|
150
|
+
'class_struggle': {
|
|
151
|
+
'error': '将阶级斗争简单化为暴力冲突',
|
|
152
|
+
'correction': '阶级斗争是根本利益的对立,有多种形式',
|
|
153
|
+
'severity': 'medium'
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
|
|
157
|
+
'methodology_errors': {
|
|
158
|
+
'mechanical_materialism': {
|
|
159
|
+
'error': '用机械的、形而上学的观点看问题',
|
|
160
|
+
'correction': '必须用辩证的、发展的观点看问题',
|
|
161
|
+
'severity': 'high'
|
|
162
|
+
},
|
|
163
|
+
'dogmatism': {
|
|
164
|
+
'error': '机械套用理论概念和公式',
|
|
165
|
+
'correction': '必须理论联系实际,具体问题具体分析',
|
|
166
|
+
'severity': 'medium'
|
|
167
|
+
},
|
|
168
|
+
'empiricism': {
|
|
169
|
+
'error': '满足于表面现象,忽视本质分析',
|
|
170
|
+
'correction': '必须透过现象看本质,揭示内在规律',
|
|
171
|
+
'severity': 'medium'
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
def _load_accuracy_standards(self) -> Dict:
|
|
177
|
+
"""加载理论准确性标准"""
|
|
178
|
+
return {
|
|
179
|
+
'concept_accuracy': {
|
|
180
|
+
'excellent': 9.0,
|
|
181
|
+
'good': 7.5,
|
|
182
|
+
'average': 6.0,
|
|
183
|
+
'poor': 4.0,
|
|
184
|
+
'serious_error': 0.0
|
|
185
|
+
},
|
|
186
|
+
'principle_application': {
|
|
187
|
+
'excellent': 9.0,
|
|
188
|
+
'good': 7.5,
|
|
189
|
+
'average': 6.0,
|
|
190
|
+
'poor': 4.0,
|
|
191
|
+
'serious_error': 0.0
|
|
192
|
+
},
|
|
193
|
+
'methodology_soundness': {
|
|
194
|
+
'excellent': 9.0,
|
|
195
|
+
'good': 7.5,
|
|
196
|
+
'average': 6.0,
|
|
197
|
+
'poor': 4.0,
|
|
198
|
+
'serious_error': 0.0
|
|
199
|
+
},
|
|
200
|
+
'analytical_depth': {
|
|
201
|
+
'excellent': 9.0,
|
|
202
|
+
'good': 7.5,
|
|
203
|
+
'average': 6.0,
|
|
204
|
+
'poor': 4.0,
|
|
205
|
+
'serious_error': 0.0
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
def validate_concept_accuracy(self, text_data: str, analysis_result: Dict) -> Dict:
|
|
210
|
+
"""验证概念准确性"""
|
|
211
|
+
|
|
212
|
+
validation_errors = []
|
|
213
|
+
concept_scores = {}
|
|
214
|
+
|
|
215
|
+
# 检查概念混淆错误
|
|
216
|
+
for concept, definition in self.classic_definitions.items():
|
|
217
|
+
concept_score = self._validate_single_concept(text_data, analysis_result, concept, definition)
|
|
218
|
+
concept_scores[concept] = concept_score
|
|
219
|
+
|
|
220
|
+
# 识别概念错误
|
|
221
|
+
if concept_score < 6.0:
|
|
222
|
+
errors = self._identify_concept_errors(text_data, analysis_result, concept, definition)
|
|
223
|
+
validation_errors.extend(errors)
|
|
224
|
+
|
|
225
|
+
# 计算概念准确性总分
|
|
226
|
+
if concept_scores:
|
|
227
|
+
concept_accuracy = sum(concept_scores.values()) / len(concept_scores)
|
|
228
|
+
else:
|
|
229
|
+
concept_accuracy = 0.0
|
|
230
|
+
|
|
231
|
+
return {
|
|
232
|
+
'concept_accuracy': concept_accuracy,
|
|
233
|
+
'concept_scores': concept_scores,
|
|
234
|
+
'validation_errors': validation_errors,
|
|
235
|
+
'accuracy_level': self._determine_accuracy_level(concept_accuracy, 'concept_accuracy')
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
def _validate_single_concept(self, text_data: str, analysis_result: Dict,
|
|
239
|
+
concept: str, definition: Dict) -> float:
|
|
240
|
+
"""验证单个概念的准确性"""
|
|
241
|
+
|
|
242
|
+
score = 10.0 # 满分10分
|
|
243
|
+
|
|
244
|
+
# 检查是否使用了错误等价概念
|
|
245
|
+
for wrong_equivalent in definition['not_equivalent_to']:
|
|
246
|
+
# 使用正则表达式匹配,避免字符串索引错误
|
|
247
|
+
error_pattern = r'\b' + re.escape(wrong_equivalent) + r'\b'
|
|
248
|
+
if re.search(error_pattern, text_data):
|
|
249
|
+
score -= 3.0
|
|
250
|
+
|
|
251
|
+
# 检查是否包含了本质要素
|
|
252
|
+
essential_elements_found = 0
|
|
253
|
+
for element in definition['essential_elements']:
|
|
254
|
+
if element in text_data:
|
|
255
|
+
essential_elements_found += 1
|
|
256
|
+
|
|
257
|
+
if definition['essential_elements']:
|
|
258
|
+
element_score = (essential_elements_found / len(definition['essential_elements'])) * 5
|
|
259
|
+
score = min(score, element_score)
|
|
260
|
+
|
|
261
|
+
# 检查是否体现了关键特征
|
|
262
|
+
key_characteristics_found = 0
|
|
263
|
+
for characteristic in definition['key_characteristics']:
|
|
264
|
+
if characteristic in text_data:
|
|
265
|
+
key_characteristics_found += 1
|
|
266
|
+
|
|
267
|
+
if definition['key_characteristics']:
|
|
268
|
+
characteristic_score = (key_characteristics_found / len(definition['key_characteristics'])) * 5
|
|
269
|
+
score = min(score, characteristic_score)
|
|
270
|
+
|
|
271
|
+
return max(score, 0.0)
|
|
272
|
+
|
|
273
|
+
def _identify_concept_errors(self, text_data: str, analysis_result: Dict,
|
|
274
|
+
concept: str, definition: Dict) -> List[TheoryError]:
|
|
275
|
+
"""识别概念错误"""
|
|
276
|
+
|
|
277
|
+
errors = []
|
|
278
|
+
|
|
279
|
+
# 检查概念混淆错误
|
|
280
|
+
if concept in self.common_errors['concept_confusion']:
|
|
281
|
+
for error_type, error_info in self.common_errors['concept_confusion'][concept].items():
|
|
282
|
+
# 使用正则表达式匹配,避免字符串索引错误
|
|
283
|
+
error_pattern = r'\b' + re.escape(error_type) + r'\b'
|
|
284
|
+
error_detected = re.search(error_pattern, text_data)
|
|
285
|
+
|
|
286
|
+
if error_detected:
|
|
287
|
+
errors.append(TheoryError(
|
|
288
|
+
error_type=f"概念混淆_{concept}_{error_type}",
|
|
289
|
+
description=error_info['error'],
|
|
290
|
+
severity=error_info['severity'],
|
|
291
|
+
correction=error_info['correction'],
|
|
292
|
+
reference=definition['classical_source']
|
|
293
|
+
))
|
|
294
|
+
|
|
295
|
+
return errors
|
|
296
|
+
|
|
297
|
+
def validate_principle_application(self, text_data: str, analysis_result: Dict) -> Dict:
|
|
298
|
+
"""验证原理应用准确性"""
|
|
299
|
+
|
|
300
|
+
validation_errors = []
|
|
301
|
+
principle_scores = {}
|
|
302
|
+
|
|
303
|
+
# 检查辩证思维应用
|
|
304
|
+
dialectics_score = self._validate_dialectics_application(text_data)
|
|
305
|
+
principle_scores['dialectics'] = dialectics_score
|
|
306
|
+
|
|
307
|
+
# 检查历史唯物主义应用
|
|
308
|
+
historical_materialism_score = self._validate_historical_materialism_application(text_data)
|
|
309
|
+
principle_scores['historical_materialism'] = historical_materialism_score
|
|
310
|
+
|
|
311
|
+
# 检查阶级分析应用
|
|
312
|
+
class_analysis_score = self._validate_class_analysis_application(text_data)
|
|
313
|
+
principle_scores['class_analysis'] = class_analysis_score
|
|
314
|
+
|
|
315
|
+
# 识别原理应用错误
|
|
316
|
+
principle_errors = self._identify_principle_errors(text_data)
|
|
317
|
+
validation_errors.extend(principle_errors)
|
|
318
|
+
|
|
319
|
+
# 计算原理应用准确性总分
|
|
320
|
+
if principle_scores:
|
|
321
|
+
principle_accuracy = sum(principle_scores.values()) / len(principle_scores)
|
|
322
|
+
else:
|
|
323
|
+
principle_accuracy = 0.0
|
|
324
|
+
|
|
325
|
+
return {
|
|
326
|
+
'principle_accuracy': principle_accuracy,
|
|
327
|
+
'principle_scores': principle_scores,
|
|
328
|
+
'validation_errors': validation_errors,
|
|
329
|
+
'accuracy_level': self._determine_accuracy_level(principle_accuracy, 'principle_application')
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
def _validate_dialectics_application(self, text_data: str) -> float:
|
|
333
|
+
"""验证辩证法应用"""
|
|
334
|
+
|
|
335
|
+
score = 10.0
|
|
336
|
+
|
|
337
|
+
# 检查是否体现了对立统一
|
|
338
|
+
unity_indicators = ['对立统一', '既对立又统一', '相互依存', '相互转化']
|
|
339
|
+
unity_found = any(indicator in text_data for indicator in unity_indicators)
|
|
340
|
+
if not unity_found:
|
|
341
|
+
score -= 3.0
|
|
342
|
+
|
|
343
|
+
# 检查是否体现了发展变化
|
|
344
|
+
development_indicators = ['发展', '变化', '运动', '过程', '转化']
|
|
345
|
+
development_found = any(indicator in text_data for indicator in development_indicators)
|
|
346
|
+
if not development_found:
|
|
347
|
+
score -= 3.0
|
|
348
|
+
|
|
349
|
+
# 检查是否体现了普遍联系
|
|
350
|
+
connection_indicators = ['联系', '关系', '相互', '影响', '作用']
|
|
351
|
+
connection_found = any(indicator in text_data for indicator in connection_indicators)
|
|
352
|
+
if not connection_found:
|
|
353
|
+
score -= 2.0
|
|
354
|
+
|
|
355
|
+
# 检查是否避免了形而上学
|
|
356
|
+
metaphysics_indicators = ['孤立', '静止', '绝对', '永恒', '不变']
|
|
357
|
+
metaphysics_found = any(indicator in text_data for indicator in metaphysics_indicators)
|
|
358
|
+
if metaphysics_found:
|
|
359
|
+
score -= 2.0
|
|
360
|
+
|
|
361
|
+
return max(score, 0.0)
|
|
362
|
+
|
|
363
|
+
def _validate_historical_materialism_application(self, text_data: str) -> float:
|
|
364
|
+
"""验证历史唯物主义应用"""
|
|
365
|
+
|
|
366
|
+
score = 10.0
|
|
367
|
+
|
|
368
|
+
# 检查是否体现了生产力决定作用
|
|
369
|
+
productivity_determining = ['生产力决定', '生产力基础', '生产力是基础']
|
|
370
|
+
productivity_found = any(indicator in text_data for indicator in productivity_determining)
|
|
371
|
+
if not productivity_found:
|
|
372
|
+
score -= 3.0
|
|
373
|
+
|
|
374
|
+
# 检查是否体现了生产关系反作用
|
|
375
|
+
relations_reaction = ['反作用', '影响', '促进', '制约']
|
|
376
|
+
reaction_found = any(indicator in text_data for indicator in relations_reaction)
|
|
377
|
+
if not reaction_found:
|
|
378
|
+
score -= 2.0
|
|
379
|
+
|
|
380
|
+
# 检查是否体现了经济基础决定上层建筑
|
|
381
|
+
base_determining = ['经济基础决定', '基础决定', '经济基础是基础']
|
|
382
|
+
base_found = any(indicator in text_data for indicator in base_determining)
|
|
383
|
+
if not base_found:
|
|
384
|
+
score -= 3.0
|
|
385
|
+
|
|
386
|
+
# 检查是否体现了上层建筑相对独立性
|
|
387
|
+
superstructure_independence = ['相对独立', '独立性', '自身规律']
|
|
388
|
+
independence_found = any(indicator in text_data for indicator in superstructure_independence)
|
|
389
|
+
if not independence_found:
|
|
390
|
+
score -= 2.0
|
|
391
|
+
|
|
392
|
+
return max(score, 0.0)
|
|
393
|
+
|
|
394
|
+
def _validate_class_analysis_application(self, text_data: str) -> float:
|
|
395
|
+
"""验证阶级分析应用"""
|
|
396
|
+
|
|
397
|
+
score = 10.0
|
|
398
|
+
|
|
399
|
+
# 检查是否基于生产资料占有关系
|
|
400
|
+
ownership_indicators = ['生产资料占有', '所有制', '占有关系']
|
|
401
|
+
ownership_found = any(indicator in text_data for indicator in ownership_indicators)
|
|
402
|
+
if not ownership_found:
|
|
403
|
+
score -= 4.0
|
|
404
|
+
|
|
405
|
+
# 检查是否避免了收入水平划分
|
|
406
|
+
income_indicators = ['收入水平', '贫富差距', '经济分化']
|
|
407
|
+
income_found = any(indicator in text_data for indicator in income_indicators)
|
|
408
|
+
if income_found:
|
|
409
|
+
score -= 3.0
|
|
410
|
+
|
|
411
|
+
# 检查是否体现了根本利益对立
|
|
412
|
+
interest_indicators = ['根本利益', '利益对立', '阶级利益']
|
|
413
|
+
interest_found = any(indicator in text_data for indicator in interest_indicators)
|
|
414
|
+
if not interest_found:
|
|
415
|
+
score -= 3.0
|
|
416
|
+
|
|
417
|
+
return max(score, 0.0)
|
|
418
|
+
|
|
419
|
+
def _identify_principle_errors(self, text_data: str) -> List[TheoryError]:
|
|
420
|
+
"""识别原理应用错误"""
|
|
421
|
+
|
|
422
|
+
errors = []
|
|
423
|
+
|
|
424
|
+
# 检查原理简化错误
|
|
425
|
+
principle_simplification = self.common_errors.get('principle_simplification', {})
|
|
426
|
+
for principle_type, principle_errors in principle_simplification.items():
|
|
427
|
+
if isinstance(principle_errors, dict):
|
|
428
|
+
for error_name, error_info in principle_errors.items():
|
|
429
|
+
if isinstance(error_info, dict) and 'error' in error_info:
|
|
430
|
+
# 使用正则表达式匹配,避免字符串索引错误
|
|
431
|
+
error_pattern = r'\b' + re.escape(error_info['error']) + r'\b'
|
|
432
|
+
error_detected = re.search(error_pattern, text_data)
|
|
433
|
+
|
|
434
|
+
if error_detected:
|
|
435
|
+
errors.append(TheoryError(
|
|
436
|
+
error_type=f"原理简化_{principle_type}_{error_name}",
|
|
437
|
+
description=error_info['error'],
|
|
438
|
+
severity=error_info.get('severity', 'medium'),
|
|
439
|
+
correction=error_info.get('correction', '需要纠正'),
|
|
440
|
+
reference="马克思主义基本原理"
|
|
441
|
+
))
|
|
442
|
+
|
|
443
|
+
# 检查方法论错误
|
|
444
|
+
methodology_errors = self.common_errors.get('methodology_errors', {})
|
|
445
|
+
for method_type, method_errors in methodology_errors.items():
|
|
446
|
+
if isinstance(method_errors, dict):
|
|
447
|
+
for error_name, error_info in method_errors.items():
|
|
448
|
+
if isinstance(error_info, dict) and 'error' in error_info:
|
|
449
|
+
# 使用正则表达式匹配,避免字符串索引错误
|
|
450
|
+
error_pattern = r'\b' + re.escape(error_info['error']) + r'\b'
|
|
451
|
+
error_detected = re.search(error_pattern, text_data)
|
|
452
|
+
|
|
453
|
+
if error_detected:
|
|
454
|
+
errors.append(TheoryError(
|
|
455
|
+
error_type=f"方法论错误_{method_type}_{error_name}",
|
|
456
|
+
description=error_info['error'],
|
|
457
|
+
severity=error_info.get('severity', 'medium'),
|
|
458
|
+
correction=error_info.get('correction', '需要纠正'),
|
|
459
|
+
reference="马克思主义方法论"
|
|
460
|
+
))
|
|
461
|
+
|
|
462
|
+
return errors
|
|
463
|
+
|
|
464
|
+
def validate_methodology_soundness(self, text_data: str, analysis_result: Dict) -> Dict:
|
|
465
|
+
"""验证方法论科学性"""
|
|
466
|
+
|
|
467
|
+
validation_errors = []
|
|
468
|
+
methodology_scores = {}
|
|
469
|
+
|
|
470
|
+
# 检查辩证思维方法
|
|
471
|
+
dialectical_method_score = self._validate_dialectical_method(text_data)
|
|
472
|
+
methodology_scores['dialectical_method'] = dialectical_method_score
|
|
473
|
+
|
|
474
|
+
# 检查理论联系实际
|
|
475
|
+
practice_connection_score = self._validate_practice_connection(text_data)
|
|
476
|
+
methodology_scores['practice_connection'] = practice_connection_score
|
|
477
|
+
|
|
478
|
+
# 检查具体问题具体分析
|
|
479
|
+
concrete_analysis_score = self._validate_concrete_analysis(text_data)
|
|
480
|
+
methodology_scores['concrete_analysis'] = concrete_analysis_score
|
|
481
|
+
|
|
482
|
+
# 检查现象到本质
|
|
483
|
+
phenomenon_to_essence_score = self._validate_phenomenon_to_essence(text_data)
|
|
484
|
+
methodology_scores['phenomenon_to_essence'] = phenomenon_to_essence_score
|
|
485
|
+
|
|
486
|
+
# 识别方法论错误
|
|
487
|
+
methodology_errors = self._identify_methodology_errors(text_data)
|
|
488
|
+
validation_errors.extend(methodology_errors)
|
|
489
|
+
|
|
490
|
+
# 计算方法论科学性总分
|
|
491
|
+
if methodology_scores:
|
|
492
|
+
methodology_soundness = sum(methodology_scores.values()) / len(methodology_scores)
|
|
493
|
+
else:
|
|
494
|
+
methodology_soundness = 0.0
|
|
495
|
+
|
|
496
|
+
return {
|
|
497
|
+
'methodology_soundness': methodology_soundness,
|
|
498
|
+
'methodology_scores': methodology_scores,
|
|
499
|
+
'validation_errors': validation_errors,
|
|
500
|
+
'accuracy_level': self._determine_accuracy_level(methodology_soundness, 'methodology_soundness')
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
def _validate_dialectical_method(self, text_data: str) -> float:
|
|
504
|
+
"""验证辩证思维方法"""
|
|
505
|
+
|
|
506
|
+
score = 10.0
|
|
507
|
+
|
|
508
|
+
# 检查是否避免形而上学
|
|
509
|
+
metaphysical_indicators = ['孤立', '静止', '绝对', '永恒', '不变']
|
|
510
|
+
metaphysical_found = any(indicator in text_data for indicator in metaphysical_indicators)
|
|
511
|
+
if metaphysical_found:
|
|
512
|
+
score -= 4.0
|
|
513
|
+
|
|
514
|
+
# 检查是否体现发展观点
|
|
515
|
+
development_indicators = ['发展', '变化', '运动', '过程', '转化']
|
|
516
|
+
development_found = any(indicator in text_data for indicator in development_indicators)
|
|
517
|
+
if not development_found:
|
|
518
|
+
score -= 3.0
|
|
519
|
+
|
|
520
|
+
# 检查是否体现矛盾观点
|
|
521
|
+
contradiction_indicators = ['矛盾', '对立统一', '相互依存', '相互转化']
|
|
522
|
+
contradiction_found = any(indicator in text_data for indicator in contradiction_indicators)
|
|
523
|
+
if not contradiction_found:
|
|
524
|
+
score -= 3.0
|
|
525
|
+
|
|
526
|
+
return max(score, 0.0)
|
|
527
|
+
|
|
528
|
+
def _validate_practice_connection(self, text_data: str) -> float:
|
|
529
|
+
"""验证理论联系实际"""
|
|
530
|
+
|
|
531
|
+
score = 10.0
|
|
532
|
+
|
|
533
|
+
# 检查是否涉及实际问题
|
|
534
|
+
practical_indicators = ['实际', '现实', '具体', '实践', '应用']
|
|
535
|
+
practical_found = any(indicator in text_data for indicator in practical_indicators)
|
|
536
|
+
if not practical_found:
|
|
537
|
+
score -= 4.0
|
|
538
|
+
|
|
539
|
+
# 检查是否避免教条主义
|
|
540
|
+
dogmatic_indicators = ['教条', '公式', '套用', '机械']
|
|
541
|
+
dogmatic_found = any(indicator in text_data for indicator in dogmatic_indicators)
|
|
542
|
+
if dogmatic_found:
|
|
543
|
+
score -= 3.0
|
|
544
|
+
|
|
545
|
+
# 检查是否体现实践标准
|
|
546
|
+
practice_standard_indicators = ['实践是检验真理的标准', '实践', '检验', '标准']
|
|
547
|
+
practice_standard_found = any(indicator in text_data for indicator in practice_standard_indicators)
|
|
548
|
+
if not practice_standard_found:
|
|
549
|
+
score -= 3.0
|
|
550
|
+
|
|
551
|
+
return max(score, 0.0)
|
|
552
|
+
|
|
553
|
+
def _validate_concrete_analysis(self, text_data: str) -> float:
|
|
554
|
+
"""验证具体问题具体分析"""
|
|
555
|
+
|
|
556
|
+
score = 10.0
|
|
557
|
+
|
|
558
|
+
# 检查是否涉及具体问题
|
|
559
|
+
concrete_indicators = ['具体', '个别', '特殊', '实际']
|
|
560
|
+
concrete_found = any(indicator in text_data for indicator in concrete_indicators)
|
|
561
|
+
if not concrete_found:
|
|
562
|
+
score -= 4.0
|
|
563
|
+
|
|
564
|
+
# 检查是否避免泛泛而谈
|
|
565
|
+
general_indicators = ['泛泛而谈', '空洞', '抽象', '笼统']
|
|
566
|
+
general_found = any(indicator in text_data for indicator in general_indicators)
|
|
567
|
+
if general_found:
|
|
568
|
+
score -= 3.0
|
|
569
|
+
|
|
570
|
+
# 检查是否体现具体分析
|
|
571
|
+
analysis_indicators = ['分析', '具体分析', '详细分析', '深入分析']
|
|
572
|
+
analysis_found = any(indicator in text_data for indicator in analysis_indicators)
|
|
573
|
+
if not analysis_found:
|
|
574
|
+
score -= 3.0
|
|
575
|
+
|
|
576
|
+
return max(score, 0.0)
|
|
577
|
+
|
|
578
|
+
def _validate_phenomenon_to_essence(self, text_data: str) -> float:
|
|
579
|
+
"""验证现象到本质"""
|
|
580
|
+
|
|
581
|
+
score = 10.0
|
|
582
|
+
|
|
583
|
+
# 检查是否涉及本质分析
|
|
584
|
+
essence_indicators = ['本质', '规律', '内在', '根本', '深层']
|
|
585
|
+
essence_found = any(indicator in text_data for indicator in essence_indicators)
|
|
586
|
+
if not essence_found:
|
|
587
|
+
score -= 4.0
|
|
588
|
+
|
|
589
|
+
# 检查是否避免表面化
|
|
590
|
+
surface_indicators = ['表面', '现象', '表象', '浅层']
|
|
591
|
+
surface_found = any(indicator in text_data for indicator in surface_indicators)
|
|
592
|
+
if surface_found:
|
|
593
|
+
score -= 3.0
|
|
594
|
+
|
|
595
|
+
# 检查是否体现透过现象看本质
|
|
596
|
+
透过现象看本质_indicators = ['透过现象看本质', '透过', '现象', '本质']
|
|
597
|
+
透过现象看本质_found = any(indicator in text_data for indicator in 透过现象看本质_indicators)
|
|
598
|
+
if not 透过现象看本质_found:
|
|
599
|
+
score -= 3.0
|
|
600
|
+
|
|
601
|
+
return max(score, 0.0)
|
|
602
|
+
|
|
603
|
+
def _identify_methodology_errors(self, text_data: str) -> List[TheoryError]:
|
|
604
|
+
"""识别方法论错误"""
|
|
605
|
+
|
|
606
|
+
errors = []
|
|
607
|
+
|
|
608
|
+
# 检查方法论错误
|
|
609
|
+
methodology_errors = self.common_errors.get('methodology_errors', {})
|
|
610
|
+
for method_type, method_errors in methodology_errors.items():
|
|
611
|
+
if isinstance(method_errors, dict):
|
|
612
|
+
for error_name, error_info in method_errors.items():
|
|
613
|
+
if isinstance(error_info, dict) and 'error' in error_info:
|
|
614
|
+
if error_info['error'] in text_data:
|
|
615
|
+
errors.append(TheoryError(
|
|
616
|
+
error_type=f"方法论错误_{method_type}_{error_name}",
|
|
617
|
+
description=error_info['error'],
|
|
618
|
+
severity=error_info.get('severity', 'medium'),
|
|
619
|
+
correction=error_info.get('correction', '需要纠正'),
|
|
620
|
+
reference="马克思主义方法论"
|
|
621
|
+
))
|
|
622
|
+
|
|
623
|
+
return errors
|
|
624
|
+
|
|
625
|
+
def validate_analytical_depth(self, text_data: str, analysis_result: Dict) -> Dict:
|
|
626
|
+
"""验证分析深度"""
|
|
627
|
+
|
|
628
|
+
validation_errors = []
|
|
629
|
+
depth_scores = {}
|
|
630
|
+
|
|
631
|
+
# 检查现象分析深度
|
|
632
|
+
phenomenon_score = self._validate_phenomenon_analysis(text_data)
|
|
633
|
+
depth_scores['phenomenon_analysis'] = phenomenon_score
|
|
634
|
+
|
|
635
|
+
# 检查本质分析深度
|
|
636
|
+
essence_score = self._validate_essence_analysis(text_data)
|
|
637
|
+
depth_scores['essence_analysis'] = essence_score
|
|
638
|
+
|
|
639
|
+
# 检查关系分析深度
|
|
640
|
+
relation_score = self._validate_relation_analysis(text_data)
|
|
641
|
+
depth_scores['relation_analysis'] = relation_score
|
|
642
|
+
|
|
643
|
+
# 检查发展分析深度
|
|
644
|
+
development_score = self._validate_development_analysis(text_data)
|
|
645
|
+
depth_scores['development_analysis'] = development_score
|
|
646
|
+
|
|
647
|
+
# 识别深度不足错误
|
|
648
|
+
depth_errors = self._identify_depth_errors(text_data)
|
|
649
|
+
validation_errors.extend(depth_errors)
|
|
650
|
+
|
|
651
|
+
# 计算分析深度总分
|
|
652
|
+
if depth_scores:
|
|
653
|
+
analytical_depth = sum(depth_scores.values()) / len(depth_scores)
|
|
654
|
+
else:
|
|
655
|
+
analytical_depth = 0.0
|
|
656
|
+
|
|
657
|
+
return {
|
|
658
|
+
'analytical_depth': analytical_depth,
|
|
659
|
+
'depth_scores': depth_scores,
|
|
660
|
+
'validation_errors': validation_errors,
|
|
661
|
+
'accuracy_level': self._determine_accuracy_level(analytical_depth, 'analytical_depth')
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
def _validate_phenomenon_analysis(self, text_data: str) -> float:
|
|
665
|
+
"""验证现象分析深度"""
|
|
666
|
+
|
|
667
|
+
score = 10.0
|
|
668
|
+
|
|
669
|
+
# 检查是否描述了现象特征
|
|
670
|
+
phenomenon_indicators = ['现象', '表现', '特征', '状况', '情况']
|
|
671
|
+
phenomenon_found = any(indicator in text_data for indicator in phenomenon_indicators)
|
|
672
|
+
if not phenomenon_found:
|
|
673
|
+
score -= 4.0
|
|
674
|
+
|
|
675
|
+
# 检查是否进行了现象分类
|
|
676
|
+
classification_indicators = ['分类', '类型', '种类', '类别']
|
|
677
|
+
classification_found = any(indicator in text_data for indicator in classification_indicators)
|
|
678
|
+
if not classification_found:
|
|
679
|
+
score -= 3.0
|
|
680
|
+
|
|
681
|
+
# 检查是否分析了现象原因
|
|
682
|
+
cause_indicators = ['原因', '原因分析', '导致']
|
|
683
|
+
cause_found = any(indicator in text_data for indicator in cause_indicators)
|
|
684
|
+
if not cause_found:
|
|
685
|
+
score -= 3.0
|
|
686
|
+
|
|
687
|
+
return max(score, 0.0)
|
|
688
|
+
|
|
689
|
+
def _validate_essence_analysis(self, text_data: str) -> float:
|
|
690
|
+
"""验证本质分析深度"""
|
|
691
|
+
|
|
692
|
+
score = 10.0
|
|
693
|
+
|
|
694
|
+
# 检查是否涉及本质概念
|
|
695
|
+
essence_indicators = ['本质', '规律', '内在', '根本']
|
|
696
|
+
essence_found = any(indicator in text_data for indicator in essence_indicators)
|
|
697
|
+
if not essence_found:
|
|
698
|
+
score -= 4.0
|
|
699
|
+
|
|
700
|
+
# 检查是否揭示了内在联系
|
|
701
|
+
inner_connection_indicators = ['内在联系', '内在关系', '本质联系']
|
|
702
|
+
inner_connection_found = any(indicator in text_data for indicator in inner_connection_indicators)
|
|
703
|
+
if not inner_connection_found:
|
|
704
|
+
score -= 3.0
|
|
705
|
+
|
|
706
|
+
# 检查是否揭示了根本原因
|
|
707
|
+
root_cause_indicators = ['根本原因', '深层次原因', '本质原因']
|
|
708
|
+
root_cause_found = any(indicator in text_data for indicator in root_cause_indicators)
|
|
709
|
+
if not root_cause_found:
|
|
710
|
+
score -= 3.0
|
|
711
|
+
|
|
712
|
+
return max(score, 0.0)
|
|
713
|
+
|
|
714
|
+
def _validate_relation_analysis(self, text_data: str) -> float:
|
|
715
|
+
"""验证关系分析深度"""
|
|
716
|
+
|
|
717
|
+
score = 10.0
|
|
718
|
+
|
|
719
|
+
# 检查是否分析了相互关系
|
|
720
|
+
relation_indicators = ['关系', '相互关系', '联系', '相互作用']
|
|
721
|
+
relation_found = any(indicator in text_data for indicator in relation_indicators)
|
|
722
|
+
if not relation_found:
|
|
723
|
+
score -= 4.0
|
|
724
|
+
|
|
725
|
+
# 检查是否分析了相互作用机制
|
|
726
|
+
mechanism_indicators = ['机制', '作用机制', '互动机制']
|
|
727
|
+
mechanism_found = any(indicator in text_data for indicator in mechanism_indicators)
|
|
728
|
+
if not mechanism_found:
|
|
729
|
+
score -= 3.0
|
|
730
|
+
|
|
731
|
+
# 检查是否分析了影响和作用
|
|
732
|
+
influence_indicators = ['影响', '作用', '促进', '制约']
|
|
733
|
+
influence_found = any(indicator in text_data for indicator in influence_indicators)
|
|
734
|
+
if not influence_found:
|
|
735
|
+
score -= 3.0
|
|
736
|
+
|
|
737
|
+
return max(score, 0.0)
|
|
738
|
+
|
|
739
|
+
def _validate_development_analysis(self, text_data: str) -> float:
|
|
740
|
+
"""验证发展分析深度"""
|
|
741
|
+
|
|
742
|
+
score = 10.0
|
|
743
|
+
|
|
744
|
+
# 检查是否涉及发展趋势
|
|
745
|
+
trend_indicators = ['趋势', '发展', '变化', '演变']
|
|
746
|
+
trend_found = any(indicator in text_data for indicator in trend_indicators)
|
|
747
|
+
if not trend_found:
|
|
748
|
+
score -= 4.0
|
|
749
|
+
|
|
750
|
+
# 检查是否分析了发展规律
|
|
751
|
+
law_indicators = ['规律', '发展规律', '客观规律']
|
|
752
|
+
law_found = any(indicator in text_data for indicator in law_indicators)
|
|
753
|
+
if not law_found:
|
|
754
|
+
score -= 3.0
|
|
755
|
+
|
|
756
|
+
# 检查是否进行了预测
|
|
757
|
+
prediction_indicators = ['预测', '展望', '前景', '趋势预测']
|
|
758
|
+
prediction_found = any(indicator in text_data for indicator in prediction_indicators)
|
|
759
|
+
if not prediction_found:
|
|
760
|
+
score -= 3.0
|
|
761
|
+
|
|
762
|
+
return max(score, 0.0)
|
|
763
|
+
|
|
764
|
+
def _identify_depth_errors(self, text_data: str) -> List[TheoryError]:
|
|
765
|
+
"""识别深度不足错误"""
|
|
766
|
+
|
|
767
|
+
errors = []
|
|
768
|
+
|
|
769
|
+
# 检查表面化错误
|
|
770
|
+
surface_indicators = ['表面', '现象', '表象', '浅层', '表面化']
|
|
771
|
+
for indicator in surface_indicators:
|
|
772
|
+
if indicator in text_data:
|
|
773
|
+
errors.append(TheoryError(
|
|
774
|
+
error_type="深度不足_表面化",
|
|
775
|
+
description=f"分析停留在{indicator},缺乏深度",
|
|
776
|
+
severity="medium",
|
|
777
|
+
correction="必须透过现象看本质,揭示内在规律",
|
|
778
|
+
reference="马克思主义认识论"
|
|
779
|
+
))
|
|
780
|
+
|
|
781
|
+
# 检查简单化错误
|
|
782
|
+
simple_indicators = ['简单', '单纯', '笼统', '泛泛而谈']
|
|
783
|
+
for indicator in simple_indicators:
|
|
784
|
+
if indicator in text_data:
|
|
785
|
+
errors.append(TheoryError(
|
|
786
|
+
error_type="深度不足_简单化",
|
|
787
|
+
description=f"分析过于{indicator},缺乏深入分析",
|
|
788
|
+
severity="medium",
|
|
789
|
+
correction="必须深入分析,避免简单化倾向",
|
|
790
|
+
reference="马克思主义方法论"
|
|
791
|
+
))
|
|
792
|
+
|
|
793
|
+
return errors
|
|
794
|
+
|
|
795
|
+
def _determine_accuracy_level(self, score: float, category: str) -> TheoryAccuracyLevel:
|
|
796
|
+
"""确定准确性等级"""
|
|
797
|
+
# 如果是overall类别,使用concept_accuracy的标准作为默认
|
|
798
|
+
if category == 'overall':
|
|
799
|
+
standards = self.accuracy_standards.get('concept_accuracy', {
|
|
800
|
+
'excellent': 9.0,
|
|
801
|
+
'good': 7.5,
|
|
802
|
+
'average': 6.0,
|
|
803
|
+
'poor': 4.0,
|
|
804
|
+
'serious_error': 0.0
|
|
805
|
+
})
|
|
806
|
+
else:
|
|
807
|
+
standards = self.accuracy_standards.get(category, {
|
|
808
|
+
'excellent': 9.0,
|
|
809
|
+
'good': 7.5,
|
|
810
|
+
'average': 6.0,
|
|
811
|
+
'poor': 4.0,
|
|
812
|
+
'serious_error': 0.0
|
|
813
|
+
})
|
|
814
|
+
|
|
815
|
+
if score >= standards['excellent']:
|
|
816
|
+
return TheoryAccuracyLevel.EXCELLENT
|
|
817
|
+
elif score >= standards['good']:
|
|
818
|
+
return TheoryAccuracyLevel.GOOD
|
|
819
|
+
elif score >= standards['average']:
|
|
820
|
+
return TheoryAccuracyLevel.AVERAGE
|
|
821
|
+
elif score >= standards['poor']:
|
|
822
|
+
return TheoryAccuracyLevel.POOR
|
|
823
|
+
else:
|
|
824
|
+
return TheoryAccuracyLevel.SERIOUS_ERROR
|
|
825
|
+
|
|
826
|
+
def comprehensive_theory_validation(self, text_data: str, analysis_result: Dict) -> Dict:
|
|
827
|
+
"""综合理论准确性验证"""
|
|
828
|
+
|
|
829
|
+
# 执行各项验证
|
|
830
|
+
concept_validation = self.validate_concept_accuracy(text_data, analysis_result)
|
|
831
|
+
principle_validation = self.validate_principle_application(text_data, analysis_result)
|
|
832
|
+
methodology_validation = self.validate_methodology_soundness(text_data, analysis_result)
|
|
833
|
+
depth_validation = self.validate_analytical_depth(text_data, analysis_result)
|
|
834
|
+
|
|
835
|
+
# 收集所有验证错误
|
|
836
|
+
all_errors = []
|
|
837
|
+
all_errors.extend(concept_validation['validation_errors'])
|
|
838
|
+
all_errors.extend(principle_validation['validation_errors'])
|
|
839
|
+
all_errors.extend(methodology_validation['validation_errors'])
|
|
840
|
+
all_errors.extend(depth_validation['validation_errors'])
|
|
841
|
+
|
|
842
|
+
# 计算综合准确性分数
|
|
843
|
+
concept_weight = 0.3
|
|
844
|
+
principle_weight = 0.3
|
|
845
|
+
methodology_weight = 0.2
|
|
846
|
+
depth_weight = 0.2
|
|
847
|
+
|
|
848
|
+
overall_accuracy = (
|
|
849
|
+
concept_validation['concept_accuracy'] * concept_weight +
|
|
850
|
+
principle_validation['principle_accuracy'] * principle_weight +
|
|
851
|
+
methodology_validation['methodology_soundness'] * methodology_weight +
|
|
852
|
+
depth_validation['analytical_depth'] * depth_weight
|
|
853
|
+
)
|
|
854
|
+
|
|
855
|
+
# 确定整体准确性等级
|
|
856
|
+
overall_level = self._determine_accuracy_level(overall_accuracy, 'overall')
|
|
857
|
+
|
|
858
|
+
# 生成改进建议
|
|
859
|
+
improvement_suggestions = self._generate_improvement_suggestions(
|
|
860
|
+
concept_validation, principle_validation, methodology_validation, depth_validation
|
|
861
|
+
)
|
|
862
|
+
|
|
863
|
+
# 验证结果
|
|
864
|
+
validation_result = {
|
|
865
|
+
'overall_accuracy': overall_accuracy,
|
|
866
|
+
'overall_level': overall_level,
|
|
867
|
+
'concept_validation': concept_validation,
|
|
868
|
+
'principle_validation': principle_validation,
|
|
869
|
+
'methodology_validation': methodology_validation,
|
|
870
|
+
'depth_validation': depth_validation,
|
|
871
|
+
'all_errors': all_errors,
|
|
872
|
+
'improvement_suggestions': improvement_suggestions,
|
|
873
|
+
'validation_timestamp': pd.Timestamp.now().isoformat()
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
# 记录验证历史
|
|
877
|
+
self._record_validation(validation_result)
|
|
878
|
+
|
|
879
|
+
return validation_result
|
|
880
|
+
|
|
881
|
+
def _generate_improvement_suggestions(self, concept_validation: Dict,
|
|
882
|
+
principle_validation: Dict,
|
|
883
|
+
methodology_validation: Dict,
|
|
884
|
+
depth_validation: Dict) -> List[str]:
|
|
885
|
+
"""生成改进建议"""
|
|
886
|
+
|
|
887
|
+
suggestions = []
|
|
888
|
+
|
|
889
|
+
# 基于概念验证结果生成建议
|
|
890
|
+
if concept_validation['concept_accuracy'] < 6.0:
|
|
891
|
+
suggestions.extend([
|
|
892
|
+
"深入学习马克思主义核心概念的经典定义",
|
|
893
|
+
"准确理解和运用概念内涵和外延",
|
|
894
|
+
"避免概念混淆和错误等价",
|
|
895
|
+
"建立准确的概念关系网络"
|
|
896
|
+
])
|
|
897
|
+
|
|
898
|
+
# 基于原理验证结果生成建议
|
|
899
|
+
if principle_validation['principle_accuracy'] < 6.0:
|
|
900
|
+
suggestions.extend([
|
|
901
|
+
"掌握马克思主义基本原理的科学内涵",
|
|
902
|
+
"避免原理应用的简单化和绝对化",
|
|
903
|
+
"正确处理决定作用与反作用的关系",
|
|
904
|
+
"坚持辩证思维,避免形而上学"
|
|
905
|
+
])
|
|
906
|
+
|
|
907
|
+
# 基于方法论验证结果生成建议
|
|
908
|
+
if methodology_validation['methodology_soundness'] < 6.0:
|
|
909
|
+
suggestions.extend([
|
|
910
|
+
"掌握马克思主义的科学方法论",
|
|
911
|
+
"坚持理论联系实际,避免教条主义",
|
|
912
|
+
"坚持具体问题具体分析",
|
|
913
|
+
"坚持透过现象看本质,避免经验主义"
|
|
914
|
+
])
|
|
915
|
+
|
|
916
|
+
# 基于深度验证结果生成建议
|
|
917
|
+
if depth_validation['analytical_depth'] < 6.0:
|
|
918
|
+
suggestions.extend([
|
|
919
|
+
"深化理论分析的层次性和全面性",
|
|
920
|
+
"从现象分析深入到本质分析",
|
|
921
|
+
"加强关系分析和发展分析",
|
|
922
|
+
"避免表面化和简单化倾向"
|
|
923
|
+
])
|
|
924
|
+
|
|
925
|
+
return list(set(suggestions))
|
|
926
|
+
|
|
927
|
+
def _record_validation(self, validation_result: Dict):
|
|
928
|
+
"""记录验证历史"""
|
|
929
|
+
|
|
930
|
+
validation_record = {
|
|
931
|
+
'timestamp': validation_result['validation_timestamp'],
|
|
932
|
+
'overall_accuracy': validation_result['overall_accuracy'],
|
|
933
|
+
'overall_level': validation_result['overall_level'].value,
|
|
934
|
+
'error_count': len(validation_result['all_errors']),
|
|
935
|
+
'suggestion_count': len(validation_result['improvement_suggestions'])
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
self.validation_history.append(validation_record)
|
|
939
|
+
|
|
940
|
+
# 保持历史记录不超过100条
|
|
941
|
+
if len(self.validation_history) > 100:
|
|
942
|
+
self.validation_history = self.validation_history[-100:]
|
|
943
|
+
|
|
944
|
+
def get_validation_statistics(self) -> Dict:
|
|
945
|
+
"""获取验证统计信息"""
|
|
946
|
+
|
|
947
|
+
if not self.validation_history:
|
|
948
|
+
return {
|
|
949
|
+
'total_validations': 0,
|
|
950
|
+
'average_accuracy': 0,
|
|
951
|
+
'accuracy_distribution': {},
|
|
952
|
+
'improvement_trend': '无数据'
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
total_validations = len(self.validation_history)
|
|
956
|
+
average_accuracy = sum(record['overall_accuracy'] for record in self.validation_history) / total_validations
|
|
957
|
+
|
|
958
|
+
# 准确性分布
|
|
959
|
+
accuracy_distribution = {}
|
|
960
|
+
for record in self.validation_history:
|
|
961
|
+
level = record['overall_level']
|
|
962
|
+
accuracy_distribution[level] = accuracy_distribution.get(level, 0) + 1
|
|
963
|
+
|
|
964
|
+
# 改进趋势
|
|
965
|
+
if total_validations >= 2:
|
|
966
|
+
recent_avg = sum(record['overall_accuracy'] for record in self.validation_history[-5:]) / min(5, total_validations)
|
|
967
|
+
earlier_avg = sum(record['overall_accuracy'] for record in self.validation_history[:-5]) / max(1, total_validations - 5)
|
|
968
|
+
|
|
969
|
+
if recent_avg > earlier_avg + 0.5:
|
|
970
|
+
improvement_trend = "明显改善"
|
|
971
|
+
elif recent_avg > earlier_avg:
|
|
972
|
+
improvement_trend = "有所改善"
|
|
973
|
+
elif recent_avg < earlier_avg - 0.5:
|
|
974
|
+
improvement_trend = "明显下降"
|
|
975
|
+
elif recent_avg < earlier_avg:
|
|
976
|
+
improvement_trend = "有所下降"
|
|
977
|
+
else:
|
|
978
|
+
improvement_trend = "保持稳定"
|
|
979
|
+
else:
|
|
980
|
+
improvement_trend = "数据不足"
|
|
981
|
+
|
|
982
|
+
return {
|
|
983
|
+
'total_validations': total_validations,
|
|
984
|
+
'average_accuracy': average_accuracy,
|
|
985
|
+
'accuracy_distribution': accuracy_distribution,
|
|
986
|
+
'improvement_trend': improvement_trend
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
def generate_validation_report(self, validation_result: Dict) -> str:
|
|
990
|
+
"""生成理论准确性验证报告"""
|
|
991
|
+
|
|
992
|
+
overall_accuracy = validation_result['overall_accuracy']
|
|
993
|
+
overall_level = validation_result['overall_level']
|
|
994
|
+
all_errors = validation_result['all_errors']
|
|
995
|
+
improvement_suggestions = validation_result['improvement_suggestions']
|
|
996
|
+
|
|
997
|
+
report = []
|
|
998
|
+
report.append("# 马克思主义理论准确性验证报告")
|
|
999
|
+
report.append(f"验证时间: {validation_result['validation_timestamp']}")
|
|
1000
|
+
report.append("")
|
|
1001
|
+
|
|
1002
|
+
# 总体评估
|
|
1003
|
+
report.append("## 总体评估")
|
|
1004
|
+
report.append(f"- 综合准确性分数: {overall_accuracy:.2f}/10")
|
|
1005
|
+
report.append(f"- 准确性等级: {overall_level.value}")
|
|
1006
|
+
report.append(f"- 验证结果: {'通过' if overall_level != TheoryAccuracyLevel.SERIOUS_ERROR else '未通过'}")
|
|
1007
|
+
report.append("")
|
|
1008
|
+
|
|
1009
|
+
# 各项验证结果
|
|
1010
|
+
report.append("## 各项验证结果")
|
|
1011
|
+
|
|
1012
|
+
# 概念准确性
|
|
1013
|
+
concept_validation = validation_result['concept_validation']
|
|
1014
|
+
report.append(f"### 概念准确性")
|
|
1015
|
+
report.append(f"- 准确性分数: {concept_validation['concept_accuracy']:.2f}/10")
|
|
1016
|
+
report.append(f"- 准确性等级: {concept_validation['accuracy_level'].value}")
|
|
1017
|
+
|
|
1018
|
+
concept_scores = concept_validation.get('concept_scores', {})
|
|
1019
|
+
if concept_scores:
|
|
1020
|
+
report.append("- 概念分数:")
|
|
1021
|
+
for concept, score in concept_scores.items():
|
|
1022
|
+
report.append(f" - {concept}: {score:.2f}")
|
|
1023
|
+
report.append("")
|
|
1024
|
+
|
|
1025
|
+
# 原理应用准确性
|
|
1026
|
+
principle_validation = validation_result['principle_validation']
|
|
1027
|
+
report.append(f"### 原理应用准确性")
|
|
1028
|
+
report.append(f"- 准确性分数: {principle_validation['principle_accuracy']:.2f}/10")
|
|
1029
|
+
report.append(f"- 准确性等级: {principle_validation['accuracy_level'].value}")
|
|
1030
|
+
|
|
1031
|
+
principle_scores = principle_validation.get('principle_scores', {})
|
|
1032
|
+
if principle_scores:
|
|
1033
|
+
report.append("- 原理分数:")
|
|
1034
|
+
for principle, score in principle_scores.items():
|
|
1035
|
+
report.append(f" - {principle}: {score:.2f}")
|
|
1036
|
+
report.append("")
|
|
1037
|
+
|
|
1038
|
+
# 方法论科学性
|
|
1039
|
+
methodology_validation = validation_result['methodology_validation']
|
|
1040
|
+
report.append(f"### 方法论科学性")
|
|
1041
|
+
report.append(f"- 准确性分数: {methodology_validation['methodology_soundness']:.2f}/10")
|
|
1042
|
+
report.append(f"- 准确性等级: {methodology_validation['accuracy_level'].value}")
|
|
1043
|
+
|
|
1044
|
+
methodology_scores = methodology_validation.get('methodology_scores', {})
|
|
1045
|
+
if methodology_scores:
|
|
1046
|
+
report.append("- 方法论分数:")
|
|
1047
|
+
for method, score in methodology_scores.items():
|
|
1048
|
+
report.append(f" - {method}: {score:.2f}")
|
|
1049
|
+
report.append("")
|
|
1050
|
+
|
|
1051
|
+
# 分析深度
|
|
1052
|
+
depth_validation = validation_result['depth_validation']
|
|
1053
|
+
report.append(f"### 分析深度")
|
|
1054
|
+
report.append(f"- 深度分数: {depth_validation['analytical_depth']:.2f}/10")
|
|
1055
|
+
report.append(f"- 深度等级: {depth_validation['accuracy_level'].value}")
|
|
1056
|
+
|
|
1057
|
+
depth_scores = depth_validation.get('depth_scores', {})
|
|
1058
|
+
if depth_scores:
|
|
1059
|
+
report.append("- 深度分数:")
|
|
1060
|
+
for depth, score in depth_scores.items():
|
|
1061
|
+
report.append(f" - {depth}: {score:.2f}")
|
|
1062
|
+
report.append("")
|
|
1063
|
+
|
|
1064
|
+
# 理论错误
|
|
1065
|
+
if all_errors:
|
|
1066
|
+
report.append("## 理论错误")
|
|
1067
|
+
report.append(f"发现错误数量: {len(all_errors)}")
|
|
1068
|
+
|
|
1069
|
+
# 按严重程度分类
|
|
1070
|
+
high_severity_errors = [error for error in all_errors if error.severity == 'high']
|
|
1071
|
+
medium_severity_errors = [error for error in all_errors if error.severity == 'medium']
|
|
1072
|
+
low_severity_errors = [error for error in all_errors if error.severity == 'low']
|
|
1073
|
+
|
|
1074
|
+
if high_severity_errors:
|
|
1075
|
+
report.append("### 严重错误")
|
|
1076
|
+
for error in high_severity_errors:
|
|
1077
|
+
report.append(f"- **{error.error_type}**: {error.description}")
|
|
1078
|
+
report.append(f" - 改正: {error.correction}")
|
|
1079
|
+
report.append(f" - 参考: {error.reference}")
|
|
1080
|
+
report.append("")
|
|
1081
|
+
|
|
1082
|
+
if medium_severity_errors:
|
|
1083
|
+
report.append("### 中等错误")
|
|
1084
|
+
for error in medium_severity_errors:
|
|
1085
|
+
report.append(f"- **{error.error_type}**: {error.description}")
|
|
1086
|
+
report.append(f" - 改正: {error.correction}")
|
|
1087
|
+
report.append(f" - 参考: {error.reference}")
|
|
1088
|
+
report.append("")
|
|
1089
|
+
|
|
1090
|
+
if low_severity_errors:
|
|
1091
|
+
report.append("### 轻微错误")
|
|
1092
|
+
for error in low_severity_errors:
|
|
1093
|
+
report.append(f"- **{error.error_type}**: {error.description}")
|
|
1094
|
+
report.append(f" - 改正: {error.correction}")
|
|
1095
|
+
report.append(f" - 参考: {error.reference}")
|
|
1096
|
+
report.append("")
|
|
1097
|
+
|
|
1098
|
+
# 改进建议
|
|
1099
|
+
if improvement_suggestions:
|
|
1100
|
+
report.append("## 改进建议")
|
|
1101
|
+
for i, suggestion in enumerate(improvement_suggestions, 1):
|
|
1102
|
+
report.append(f"{i}. {suggestion}")
|
|
1103
|
+
report.append("")
|
|
1104
|
+
|
|
1105
|
+
# 验证统计
|
|
1106
|
+
statistics = self.get_validation_statistics()
|
|
1107
|
+
report.append("## 验证统计")
|
|
1108
|
+
report.append(f"- 总验证次数: {statistics['total_validations']}")
|
|
1109
|
+
report.append(f"- 平均准确性分数: {statistics['average_accuracy']:.2f}")
|
|
1110
|
+
report.append(f"- 改进趋势: {statistics['improvement_trend']}")
|
|
1111
|
+
report.append("")
|
|
1112
|
+
|
|
1113
|
+
# 总结
|
|
1114
|
+
report.append("## 总结")
|
|
1115
|
+
if overall_level == TheoryAccuracyLevel.EXCELLENT:
|
|
1116
|
+
report.append("理论准确性优秀,完全符合马克思主义理论标准。")
|
|
1117
|
+
elif overall_level == TheoryAccuracyLevel.GOOD:
|
|
1118
|
+
report.append("理论准确性良好,基本符合马克思主义理论标准。")
|
|
1119
|
+
elif overall_level == TheoryAccuracyLevel.AVERAGE:
|
|
1120
|
+
report.append("理论准确性一般,需要在理论理解和应用方面进一步提升。")
|
|
1121
|
+
elif overall_level == TheoryAccuracyLevel.POOR:
|
|
1122
|
+
report.append("理论准确性不足,存在明显理论偏差,需要系统学习马克思主义理论。")
|
|
1123
|
+
else:
|
|
1124
|
+
report.append("理论准确性存在严重错误,必须立即纠正理论偏差。")
|
|
1125
|
+
|
|
1126
|
+
return "\n".join(report)
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
def main():
|
|
1130
|
+
"""测试理论准确性验证器"""
|
|
1131
|
+
validator = MarxistTheoryValidator()
|
|
1132
|
+
|
|
1133
|
+
test_text = """
|
|
1134
|
+
在当代社会发展中,生产力水平显著提升,特别是数字技术的快速发展。
|
|
1135
|
+
生产资料所有制坚持公有制为主体,劳动关系呈现多元化特点。
|
|
1136
|
+
经济基础的变革为上层建筑的完善提供了物质基础。
|
|
1137
|
+
当前社会主要矛盾是人民日益增长的美好生活需要和不平衡不充分的发展之间的矛盾。
|
|
1138
|
+
人民群众在历史发展中发挥着主体作用。
|
|
1139
|
+
"""
|
|
1140
|
+
|
|
1141
|
+
print("=== 马克思主义理论准确性验证器测试 ===")
|
|
1142
|
+
|
|
1143
|
+
# 模拟分析结果(实际使用时应该用真实的分析结果)
|
|
1144
|
+
mock_analysis_result = {
|
|
1145
|
+
'dialectical_results': {
|
|
1146
|
+
'overall_dialectical_level': {
|
|
1147
|
+
'overall_score': 6.5
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
'historical_results': {
|
|
1151
|
+
'overall_theoretical_level': {
|
|
1152
|
+
'overall_score': 5.8
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
# 执行综合验证
|
|
1158
|
+
validation_result = validator.comprehensive_theory_validation(test_text, mock_analysis_result)
|
|
1159
|
+
|
|
1160
|
+
# 显示验证结果
|
|
1161
|
+
print(f"\n综合准确性分数: {validation_result['overall_accuracy']:.2f}/10")
|
|
1162
|
+
print(f"准确性等级: {validation_result['overall_level'].value}")
|
|
1163
|
+
|
|
1164
|
+
# 显示各项指标
|
|
1165
|
+
print(f"\n各项指标:")
|
|
1166
|
+
print(f"- 概念准确性: {validation_result['concept_validation']['concept_accuracy']:.2f}/10")
|
|
1167
|
+
print(f"- 原理应用准确性: {validation_result['principle_validation']['principle_accuracy']:.2f}/10")
|
|
1168
|
+
print(f"- 方法论科学性: {validation_result['methodology_validation']['methodology_soundness']:.2f}/10")
|
|
1169
|
+
print(f"- 分析深度: {validation_result['depth_validation']['analytical_depth']:.2f}/10")
|
|
1170
|
+
|
|
1171
|
+
# 显示理论错误
|
|
1172
|
+
all_errors = validation_result['all_errors']
|
|
1173
|
+
if all_errors:
|
|
1174
|
+
print(f"\n理论错误 ({len(all_errors)}个):")
|
|
1175
|
+
for error in all_errors:
|
|
1176
|
+
print(f"- {error.error_type}: {error.description}")
|
|
1177
|
+
|
|
1178
|
+
# 显示改进建议
|
|
1179
|
+
improvement_suggestions = validation_result['improvement_suggestions']
|
|
1180
|
+
if improvement_suggestions:
|
|
1181
|
+
print(f"\n改进建议 ({len(improvement_suggestions)}项):")
|
|
1182
|
+
for suggestion in improvement_suggestions:
|
|
1183
|
+
print(f"- {suggestion}")
|
|
1184
|
+
|
|
1185
|
+
# 生成验证报告
|
|
1186
|
+
validation_report = validator.generate_validation_report(validation_result)
|
|
1187
|
+
|
|
1188
|
+
print(f"\n{validation_report}")
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
if __name__ == "__main__":
|
|
1192
|
+
main()
|