Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(utils): Add strip_prefixes function to remove common question prefix #64

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

abdullahwaqar
Copy link
Contributor

Description

This utility aids in standardizing question formatting, especially for user-generated data.

  • Added strip_prefixes function to strip specified prefixes from question items.
  • Included a default list of common prefixes like "Have you ever", "Do you", etc.,
    allowing usage without requiring explicit prefix input each time.
  • Enhanced flexibility by allowing custom prefixes list as an optional argument.

Fixes #61

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Requires a documentation revision

Testing

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • No tests were added for this function, as it’s a standalone utility with minimal dependencies.

Test Configuration

  • Library version: v1.0.0
  • OS: Linux
  • Toolchain: 3.11

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

@woodthom2 woodthom2 merged commit bf578c9 into harmonydata:main Nov 18, 2024
1 check passed
@woodthom2
Copy link
Contributor

Thanks Abdullah!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add util function to strip prefixes from question items
2 participants