docs: align keywords in string/base with namespace majority patterns#11841
Open
Planeshifter wants to merge 13 commits intodevelopfrom
Open
docs: align keywords in string/base with namespace majority patterns#11841Planeshifter wants to merge 13 commits intodevelopfrom
string/base with namespace majority patterns#11841Planeshifter wants to merge 13 commits intodevelopfrom
Conversation
Added missing `base` keyword (present in 78% of `string/base/*` siblings).
Added missing `base` keyword (present in 78% of `string/base/*` siblings).
Added missing `base` keyword (present in 78% of `string/base/*` siblings).
…ions Added missing `base` keyword (present in 78% of `string/base/*` siblings).
…onventions Added missing `base` keyword (present in 78% of `string/base/*` siblings).
…onventions Added missing `base` keyword (present in 78% of `string/base/*` siblings).
Added missing `base` keyword (present in 78% of `string/base/*` siblings).
Added missing `base` keyword (present in 78% of `string/base/*` siblings).
Added missing `base` keyword (present in 78% of `string/base/*` siblings).
Added missing `base` keyword (present in 78% of `string/base/*` siblings).
…ventions Added missing `base` keyword (present in 78% of `string/base/*` siblings).
Added missing `base` keyword (present in 78% of `string/base/*` siblings).
Added missing `stdstring`, `utility`, and `util` keywords (present in 96-98% of `string/base/*` siblings).
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
string/base with namespace majority patternsstring/base with namespace majority patterns
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request aligns outlier packages in the
@stdlib/string/basenamespace with majoritypackage.jsonkeywordsconventions (random namespace pick, seed20260429).Namespace summary
@stdlib/string/basepackage.jsontop-level keys,os,engines,main,types,directories, READMEUsage/Examplessections,keywordsset,returnKind, JSDoc@example/@param/@returnscoverageerrorConstruction(onlyformat-interpolatethrows),validationPrologue(no validation in/base/), README ## section order (top sequence at 62%),__stdlib__field (22%)Outlier packages
string/base/slice-code-pointsKeyword block was missing
stdstring,utility, andutil— each present in 96–98% of namespace siblings. Inserted at canonical positions; existing order otherwise untouched.string/base/code-point-at,ends-with,for-each,for-each-code-point,for-each-code-point-right,for-each-grapheme-cluster,for-each-right,format-interpolate,format-tokenize,right-trim,slice-grapheme-clusters,trimEach was missing the
basekeyword (47/60 = 78% in-namespace conformance). Inserted immediately afterutilto match the canonical leading-block layout. One commit per package per the routine.Note: the five
for-each*packages also usestdutils/stdutilin place of the conventionalstdstringin their leading block. That secondary deviation is out of scope for this PR — it requires human review since it is not strictly a missing-element drift but a substitution.Related Issues
None.
Questions
None.
Other
Validation
Cross-package drift was identified by extracting structural and semantic features from all 60 leaf packages, computing per-feature majority patterns at the 75% threshold, and gating each candidate fix through three independent reviewers:
format-interpolate's concat-style throws have no in-namespace majority and are deliberately not touched.package.json.keywordsis read by no test, example, benchmark, or sibling tooling instring/base/; modifications cannot affect API contracts or test expectations.distancesis a namespace aggregator (intentional deviation) and verified the canonical keyword-block layout used by the corrected packages.Excluded from this run
distances— namespace package (re-exportshammingandlevenshtein); missinglib/main.js,benchmark/,docs/repl.txtand most leaf-keyword conventions are intentional given its package shape.format-interpolateerror construction — concat-style throws diverge from the globalformatconvention, but only one package in the namespace throws, so no in-namespace majority exists; out of scope per the routine's strict majority-vote rule.See Alsosection — auto-populated by tooling; missing sections are upstream automation territory, not drift.for-each*stdutils/stdutilsubstitution — flagged for human review; not a strict missing-element drift.A full local audit report is saved alongside the worktree as
drift-string-base-2026-04-29.md.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was authored by Claude Code running the cross-package drift-detection routine: structural and semantic features were extracted programmatically, three independent agents validated each candidate correction, and only fixes confirmed as mechanical, behavior-preserving metadata edits were applied. Human authors should audit the keyword insertions against the namespace conventions before promoting from draft.
Generated by Claude Code