2.1 KiB
2.1 KiB
README_correspondence.md
Overview
correspondence.py implements the Correspondence system, a key component of the Copycat system that manages the mapping relationships between objects in the initial and target strings. It handles the creation, evaluation, and management of correspondences that link objects based on their properties and relationships.
Core Components
Correspondenceclass: Main class that represents a mapping between objects- Concept mapping system
- Correspondence strength evaluation
Key Features
- Manages mappings between objects in initial and target strings
- Evaluates correspondence strength based on multiple factors
- Handles concept slippages and mappings
- Supports both direct and accessory concept mappings
- Manages correspondence compatibility and support
Correspondence Components
objectFromInitial: Object from the initial stringobjectFromTarget: Object from the target stringconceptMappings: List of concept mappingsaccessoryConceptMappings: Additional concept mappingsflipTargetObject: Flag for target object flipping
Main Methods
updateInternalStrength(): Calculate internal correspondence strengthupdateExternalStrength(): Calculate external correspondence strengthbuildCorrespondence(): Create and establish correspondencebreakCorrespondence(): Remove correspondenceincompatible(): Check correspondence compatibilitysupporting(): Check if correspondence supports anotherinternallyCoherent(): Check internal coherence
Concept Mapping Types
- Distinguishing mappings
- Relevant distinguishing mappings
- Bond mappings
- Direction mappings
- Symmetric mappings
Dependencies
- Requires
conceptMapping,group,letter, andworkspaceStructuremodules - Uses
formulasfor mapping calculations - Used by the main
copycatmodule
Notes
- Correspondences are evaluated based on concept mapping strength and coherence
- The system supports both direct and indirect concept mappings
- Correspondences can be incompatible with each other
- The system handles both letter and group correspondences
- Concept slippages are tracked and managed