
    Design a function for the learning path generator that identifies the first adverb and its position in a student's written response, enabling the system to assess grammar proficiency and adjust adverb-related lessons accordingly. The function should analyze the submitted text and determine if and where the student has incorporated adverbs in their writing, supporting targeted feedback and personalized instruction.
    

    
import re

def find_adverb_position(text):
    """
    Design a function for the learning path generator that identifies the first adverb and its position in a student's written response, enabling the system to assess grammar proficiency and adjust adverb-related lessons accordingly. The function should analyze the submitted text and determine if and where the student has incorporated adverbs in their writing, supporting targeted feedback and personalized instruction.
    

    """
import re

def find_adverb_position(text):
    """
    Design a function for the learning path generator that identifies the first adverb and its position in a student's written response, enabling the system to assess grammar proficiency and adjust adverb-related lessons accordingly. The function should analyze the submitted text and determine if and where the student has incorporated adverbs in their writing, supporting targeted feedback and personalized instruction.
    

    """
    for m in re.finditer('\\w+ly', text):
        return (m.start(), m.end(), m.group(0))