+ Reply to Thread
Results 1 to 9 of 9

Splitting word list based on syllabic structure, CVC (consonant/vowel/consonant) etc

  1. #1
    Registered User
    Join Date
    10-21-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Smile Splitting word list based on syllabic structure, CVC (consonant/vowel/consonant) etc

    Hi there!
    I'm new to the forum and came on as I've been trying to split a word list in groups that correspond to the words' syllabic structure, such as CV, VC, CVC, VCC and so on, (where 'C' = consonant and 'V' = vowel).

    Here is a tiny sample list from 40,000 words:

    bá bé ab ag aba abú cat bun agam agat


    The logic of the macro would run as follows:

    Vowels (V): a, á, o, ó, u, ú, abh, adh, agh etc [the last three are vowels or diphthongs as it happens]
    Consonants (C): b, c, ch, f, gh etc

    Operation: word parsed for C and V pattern (ex: 'agat' is VCVC) and placed within its cohort



    Resulting in:

    ab (CV)
    ag

    bá (VC)


    aba (VCV)
    abú

    bun (CVC)
    cat

    agam (VCVC)
    agat


    [The codes are purely for explanatory purposes]


    Any help with this would be greatly appreciated!

    James

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Splitting word list based on syllabic structure, CVC (consonant/vowel/consonant) etc

    Hi James and welcome to the forum!

    You give your lists of vowels and consonants with an "etc." at the end, though it's likely that a solution to your problem would require a definitive list for each category, and I for one would not be confident of completing that list based on assumptions (appears to be a form of Irish?).

    Could you please provide a comprehensive list for both vowels and consonants?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    10-21-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Splitting word list based on syllabic structure, CVC (consonant/vowel/consonant) etc

    XOR LX,
    hi and thanks! Yes, it's Irish. I'm trying to group the words ultimately based on their underlying pronunciation. While the spelling is more regular and 'phonetic' than English, it's hard to parse due to all the silent vowels the job of which is to show the quality of the consonant (buí and bí have different b sounds, for example).

    Vowels: a, e, o, u, i, á, é, ó, ú, í, abh, ábh, adh, idh, idhe, agh, igh, ighe, amh, eamh, ith, bh, mh
    Consonants: b, bh, c, ch, d, dh, f, fh, g, gh, h, j, l, ll, m, n, nn, p, ph, q, r, rr, s, sh, t, th, v, x, y, z, ibh, imh


    [bh and mh re treated as consonants normally when at the start and middle (where they come from b and m and have a grammatical function) but I'm treating them as vowels as in a dictionary list they are mostly at the end ]

    Due to all the possible combinations in a system set up to follow basic principles rather than strict absolute spelling so there will be on or two combos I might have missed, but I have the most of them
    Last edited by Jay Bee; 10-21-2013 at 08:05 AM.

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Splitting word list based on syllabic structure, CVC (consonant/vowel/consonant) etc

    Try the attached workbook.

    The sheet [Lookup] is used to map which letters / combinations relate to Consonants (C) or Vowels (V).

    The user-defined-function then loops through all these rows, and replaces the actual letter(s) with a C or V appropriately, for the string provided.

    So, you can use =CVStructure("irishword") to translate it into the CV style word structure.

    Hope this makes sense!
    Attached Files Attached Files
    Last edited by Olly; 10-21-2013 at 08:52 AM.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Splitting word list based on syllabic structure, CVC (consonant/vowel/consonant) etc

    Oh, forgot to add - then you can simply use a pivot table to group lists of words by structure.

    Edit: updated workbook attached, with pivot table grouping by word structure.
    Attached Files Attached Files
    Last edited by Olly; 10-21-2013 at 08:51 AM.

  6. #6
    Registered User
    Join Date
    10-21-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Splitting word list based on syllabic structure, CVC (consonant/vowel/consonant) etc

    OllyXLS,
    great job! I like how easily modifiable and tunable it is. It has saved me a massive amount of time (or enabled it be actually done -I was only going to list short CVC words. With this I could do the whole thing potentially)

    The list was for a language forum with learners but this sheet is so useful some of the linguists on it would find use in it as it could be easily changed to suit another language

    Thanks!

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Splitting word list based on syllabic structure, CVC (consonant/vowel/consonant) etc

    Great work, Olly!!

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Splitting word list based on syllabic structure, CVC (consonant/vowel/consonant) etc

    I've marked this thread as SOLVED for you.
    Next time, select Thread Tools from the links above to mark a thread as SOLVED. Thanks.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  9. #9
    Registered User
    Join Date
    10-21-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Splitting word list based on syllabic structure, CVC (consonant/vowel/consonant) etc

    JBeaucaire,
    sorry about that. I tried looking for the option at the time but couldn't find it I think due to having not been logged in.

    Apologies,
    James

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Splitting a string into a vertical list based on delimiter?
    By Flabbergaster in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-19-2012, 08:47 AM
  2. [SOLVED] Forecast KIT splitting based on BOM list
    By SPet in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-12-2012, 06:59 AM
  3. Splitting Data Into Separate Files Based on Pre-Populated List
    By sigma1113 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-16-2011, 03:20 PM
  4. Printing Word Documents based on .xls name list
    By mbreezy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2007, 12:41 PM
  5. Displaying Tree Structure in List Box
    By King in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-12-2005, 05:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1