Community
    • Login

    Grammatical categories

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 223 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • María del Mar MuñozM
      María del Mar Muñoz
      last edited by

      Hii! I’m using Notepad for my lessons, so my understanding of this is very limited. We have to make an assignment for class and I just don’t seem to understand how to specify grammatical categories correctly when it comes to searching for regular expressions.

      For example, we have a text and we have to search for all the ocurrencies of nouns ending in -ity. As far as I have understood, the expression would be {NN,NNS}+_ity$, but I just keep getting error.

      If any of you could help me, I’d be really grateful.

      Neil SchipperN 1 Reply Last reply Reply Quote 0
      • Neil SchipperN
        Neil Schipper @María del Mar Muñoz
        last edited by

        @maría-del-mar-muñoz I can’t tell if you’re supposed to be learning about regex, or something to do with language.

        If it’s language, simply searching for ity should get you most of the way there, no?

        If you’re actually supposed to be learning regex, the expression you showed is very wrong. You need to spend some time with the docs, and play around with very simple expressions. Try including one new rule at a time to build competence. I suggest you learn what \w represents, as well as the * modifier. (I could give you more, but you’re a student, you need to study!)

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors