Chemical Literature Text Extractor & CAS Validator

Extract structured chemical entities directly from experimental paragraphs, patents, and laboratory notebook entries. Verifies CAS Registry Numbers using the official mod-10 weighted sum algorithm, normalizes temperatures, masses, and volumes to standard SI units, and exports structured results to CSV.

Complete Privacy & Offline Operation: 100% computed client-side in your browser. No text is ever uploaded to a remote LLM API, cloud server, or external service. Completely confidential and zero latency.
Worked Procedure Samples:

Chemical Named Entity Extraction & CAS Check-Digit Algorithm

Automated parsing of chemical literature requires robust rule-based heuristics to identify numerical parameters (stoichiometry, temperature, time, and yield) and canonical chemical identifiers (CAS Registry Numbers).

1. The Chemical Abstracts Service (CAS) Check-Digit Algorithm

Every official CAS Registry Number has the format Nᵢ \dots N₄ N₃ N₂ - N₁ N₀ - R, where R is a single-digit checksum calculated by a weighted mod-10 sum:

Sum = (1 × N_0) + (2 × N_1) + (3 × N_2) + (4 × N_3) + &dots; + (i × N_{i-1})
R = Sum mod 10

For example, water (CAS 7732-18-5): (1× 8) + (2× 1) + (3× 2) + (4× 3) + (5× 7) + (6× 7) = 8 + 2 + 6 + 12 + 35 + 42 = 105. 105 mod 10 = 5, verifying the check-digit.

Worked Chemical Procedure Paragraphs

Procedure 1: Synthesis of Acetylsalicylic Acid (Aspirin)

"To a 100 mL round-bottom flask was added salicylic acid (CAS 69-72-7, 5.0 g, 36.2 mmol) and acetic anhydride (CAS 108-24-7, 10.0 mL, 106 mmol), followed by 5 drops of concentrated sulfuric acid. The mixture was heated to 85 °C for 30 min with continuous stirring. After cooling to room temperature, 50 mL of cold water was added. The resulting white crystalline precipitate was collected by vacuum filtration and washed with ice-cold water, affording acetylsalicylic acid (CAS 50-78-2, 5.86 g, 32.5 mmol, 90% yield)."

Extracted: 3 Valid CAS numbers (69-72-7, 108-24-7, 50-78-2), 85 °C (358.15 K), 30 min, 5.0 g, 10.0 mL, 50 mL, and 90% yield.

Procedure 2: Suzuki-Miyaura Cross-Coupling

"4-Bromotoluene (CAS 106-38-7, 1.71 g, 10.0 mmol) and phenylboronic acid (CAS 98-80-6, 1.46 g, 12.0 mmol) were dissolved in 40 mL of a 1,4-dioxane/water mixture (4:1). Potassium carbonate (4.15 g, 30.0 mmol) and Pd(PPh3)4 (231 mg, 0.20 mmol, 2 mol%) were added under nitrogen. The suspension was heated at 90 °C for 12 h. The mixture was diluted with 50 mL DCM, washed with brine, dried over MgSO4, and concentrated to yield 4-methylbiphenyl (CAS 644-08-6, 1.51 g, 90% yield)."

Extracted: 3 Valid CAS numbers, 90 °C (363.15 K), 12 h, 1.71 g, 1.46 g, 4.15 g, 231 mg, 40 mL, 50 mL, solvents (DCM, brine, MgSO4), 90% yield.

Academic References

  1. Chemical Abstracts Service. (2023). CAS Registry Number Verification Guide. American Chemical Society.
  2. Swain, M. C. & Cole, J. M. (2016). ChemDataExtractor: A toolkit for automated extraction of chemical information from the scientific literature. Journal of Chemical Information and Modeling, 56(10), 1894-1904.
  3. BIAV (Bureau International des Poids et Mesures). (2019). The International System of Units (SI) (9th ed.).