Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7832197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:05:10+00:00 2026-06-02T12:05:10+00:00

If I have a field_name which is grammatically correct. And I want to separate

  • 0

If I have a field_name which is grammatically correct. And I want to separate it by using space.

For example,

  1. field_name is CylinderConfiguration, and I want it like Cylinder Configuration
  2. field_name is NoofCylinders, and I want it like No of Cylinders

Please note capitalization is not the recognizable character in the strings whole string may be in small.

Is there any way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T12:05:15+00:00Added an answer on June 2, 2026 at 12:05 pm

    You could do this by using the dictionary in /usr/share/dict/words (or just downloading a word list).

    The algorithm in pseudo code would then go like this:

    counter = 0
    make input lowercase
    loop i from 0 to length of input:
        if sub string from 0 to i of input is in dictionary:
            grammatical_words[counter] = sub string from 0 to i
            add one to counter
    
    echo all words from grammatical_words
    

    The down side with this is that any string starting with a or i will basically fail – a string like algorithm would be split into a and then have no further matches. That means that you’d need to disallow certain words if you are confident you don’t use them. Also, compound words such as often or desktop would not have the expected behaviour. Words that have a word in their root, e.g. ‘tablet’, ‘mobile’, ‘popular’ etc would also fail.

    With some tweaking, this could work though. I would make a custom word list rather than using the system dictionary if you know what words you use to speed things up and to avoid false positives.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have field which contain a value like: F28_TIT245_0_90A_OOC_LCL by AARBITMA(aarbitma@LC13UPE-CIM) I want to
I have a sql like this: SELECT TOP 1 field_name * FROM table_name and
I have a Sharepoint list which have columns like : CopmanyName, Add1, Add2 Country,
I have a form which is built dynamically using this jQuery plugin http://code.google.com/p/jquery-dynamic-form/ When
I have a vector of Student which has a field name. I want to
Scenario: I have 1 columns in my select statement; Name which I want to
I have a display name field which I have to validate using Ruby regex.
I have an ActiveRecord model, Foo , which has a name field. I'd like
I have created a blog app which its model has an author field like
i have table called as Support, which have a field named Name and contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.