Unit Detection and Normalization (+4)
Unit Detection and Normalization
Recognize units in parentheses, brackets, or inline: (m/s²), [ksi],
N/mm². Normalize to a canonical form:
| Input variants |
Canonical |
ksi, KSI |
ksi |
N/mm², MPa |
MPa |
mA/m², mA/m2 |
mA/m² |
°C, deg C |
°C |
lb/ft, lbs/ft |
lb/ft |
Flag SI vs imperial vs field units. Prefer SI in output; keep original as
units_original.
Standards Reference Parsing
Parse references like DNV-RP-B401 Section 3.4.6 into structured form:
standard_ref:
body: DNV
document: RP-B401
edition: null # null unless explicitly stated in source text
edition_inferred: 2021 # set only when edition can be inferred; null otherwise
section: 3.4.6
table: null
figure: null
raw: "DNV-RP-B401 Section 3.4.6"
Inference rule: edition must be null unless the source text explicitly
states the year. Use edition_inferred only when surrounding context (title
page, header, or adjacent reference) provides strong evidence; never guess.
Common patterns:
DNV-RP-XXXX Sec N.N.N / Section N.N / Table N-N / Figure N-N
API RP NNX Section N / API 579-1 Part N
ASME BPVC Section VIII Div 2
ISO NNNNN-N:YYYY Clause N.N
Safety and Design Factor Identification
Flag values tagged as safety factors, design factors, or usage factors:
- Keywords: "safety factor", "design factor", "utilisation factor", "usage factor"
- Often dimensionless ratios between 0 and 10
- Extract: {name, value, standard_ref, applicability}
Material Property Recognition
Detect material properties in text or tables:
- Yield strength (SMYS), tensile strength (SMTS), Young's modulus
- Density, thermal expansion coefficient, Poisson's ratio
- Fatigue S-N curve parameters
- Extract: {property, value, units, material_grade, temperature, standard_ref}
Condition and Applicability Tagging
Many values have applicability constraints. Tag extracted items with:
- Temperature range
- Depth/pressure range
- Material grade or category
- Environmental condition (seawater, air, buried)
- Service life assumptions
1---2name: doc-extraction-unit-detection-and-normalization3description: Sub-skill of doc-extraction: Unit Detection and Normalization (+4).4---56# Unit Detection and Normalization (+4)78## Unit Detection and Normalization91011Recognize units in parentheses, brackets, or inline: `(m/s²)`, `[ksi]`,12`N/mm²`. Normalize to a canonical form:1314| Input variants | Canonical |15|---------------|-----------|16| `ksi`, `KSI` | `ksi` |17| `N/mm²`, `MPa` | `MPa` |18| `mA/m²`, `mA/m2` | `mA/m²` |19| `°C`, `deg C` | `°C` |20| `lb/ft`, `lbs/ft` | `lb/ft` |2122Flag SI vs imperial vs field units. Prefer SI in output; keep original as23`units_original`.242526## Standards Reference Parsing272829Parse references like `DNV-RP-B401 Section 3.4.6` into structured form:3031```yaml32standard_ref:33 body: DNV34 document: RP-B40135 edition: null # null unless explicitly stated in source text36 edition_inferred: 2021 # set only when edition can be inferred; null otherwise37 section: 3.4.638 table: null39 figure: null40 raw: "DNV-RP-B401 Section 3.4.6"41```4243**Inference rule**: `edition` must be null unless the source text explicitly44states the year. Use `edition_inferred` only when surrounding context (title45page, header, or adjacent reference) provides strong evidence; never guess.4647Common patterns:48- `DNV-RP-XXXX Sec N.N.N` / `Section N.N` / `Table N-N` / `Figure N-N`49- `API RP NNX Section N` / `API 579-1 Part N`50- `ASME BPVC Section VIII Div 2`51- `ISO NNNNN-N:YYYY Clause N.N`525354## Safety and Design Factor Identification555657Flag values tagged as safety factors, design factors, or usage factors:58- Keywords: "safety factor", "design factor", "utilisation factor", "usage factor"59- Often dimensionless ratios between 0 and 1060- Extract: {name, value, standard_ref, applicability}616263## Material Property Recognition646566Detect material properties in text or tables:67- Yield strength (SMYS), tensile strength (SMTS), Young's modulus68- Density, thermal expansion coefficient, Poisson's ratio69- Fatigue S-N curve parameters70- Extract: {property, value, units, material_grade, temperature, standard_ref}717273## Condition and Applicability Tagging747576Many values have applicability constraints. Tag extracted items with:77- Temperature range78- Depth/pressure range79- Material grade or category80- Environmental condition (seawater, air, buried)81- Service life assumptions