Class ChemicalReactionParser

java.lang.Object
org.episteme.natural.chemistry.ChemicalReactionParser

public class ChemicalReactionParser extends Object
Chemical Reaction Parser and Balancer. Parses chemical equations from strings and can balance them.

Supports standard chemical notation:

  • Elements: H, O, C, Na, Cl, etc.
  • Coefficients: 2H2O, 3NaCl
  • Subscripts: H2O, C6H12O6
  • Parentheses: Ca(OH)2, Al2(SO4)3
  • Charges: Na+, SO4^2-, Fe^3+
  • States: (s), (l), (g), (aq)
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)