Skip to content

feat(rules): Expand Default Ruleset with Comprehensive Metal Ions#20

Merged
TKanX merged 1 commit intomainfrom
feature/19-extend-ruleset-with-common-ions
Dec 9, 2025
Merged

feat(rules): Expand Default Ruleset with Comprehensive Metal Ions#20
TKanX merged 1 commit intomainfrom
feature/19-extend-ruleset-with-common-ions

Conversation

@TKanX
Copy link
Copy Markdown
Member

@TKanX TKanX commented Dec 9, 2025

Summary:

Expands the default DREIDING ruleset (default.rules.toml) to include typing rules for a much broader range of metal ions. This ensures that systems containing common physiological ions (like K+, Cl-) and transition metals (like Ag, Au, Cu, Pt) can be typed out-of-the-box without requiring custom rule files. These new rules act as low-priority fallbacks for isolated or non-hybridized metal atoms.

Changes:

  • Added Rules for Alkali Metals:

    • Added typing rules for Lithium (Li), Potassium (K), Rubidium (Rb), and Cesium (Cs).
  • Added Rules for Alkaline Earth Metals:

    • Added typing rules for Strontium (Sr) and Barium (Ba).
  • Added Rules for Transition Metals:

    • Added typing rules for Silver (Ag), Gold (Au), Cadmium (Cd), Cobalt (Co), Copper (Cu), Nickel (Ni), Palladium (Pd), and Platinum (Pt).
  • Reorganized Metal Rules:

    • Sorted all metal rules alphabetically by element symbol within the TOML file for better maintainability.

@TKanX TKanX self-assigned this Dec 9, 2025
Copilot AI review requested due to automatic review settings December 9, 2025 13:36
@TKanX TKanX added the enhancement ✨ New feature or request label Dec 9, 2025
@TKanX TKanX linked an issue Dec 9, 2025 that may be closed by this pull request
5 tasks
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands the default DREIDING ruleset to include typing rules for 13 additional metal ions, enabling out-of-the-box support for common physiological ions (K+, Cl-) and transition metals (Ag, Au, Cu, Pt, etc.) without requiring custom rule files. The changes are well-structured, following established patterns, and properly organized.

Key Changes:

  • Added rules for 8 transition metals (Ag, Au, Cd, Co, Cu, Ni, Pd, Pt)
  • Added rules for 4 alkali/alkaline earth metals (Li, K, Rb, Cs, Ba, Sr)
  • Reorganized all metal rules alphabetically by element symbol for maintainability
  • Updated version from 2.1.0 to 2.2.0

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TKanX TKanX merged commit 473b80e into main Dec 9, 2025
8 checks passed
@TKanX TKanX deleted the feature/19-extend-ruleset-with-common-ions branch December 9, 2025 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement ✨ New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extend Ruleset with Common Ions

2 participants