as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
construct an algorithm to identify if a sentence is positive or not.
user
create a function to identify if a sentence is positive or not.

1. create a list of words with positive connotations, such as "lovely," "joyful," "blessed," and "splendid".

2. split the sentence into individual words and store them in an array.

3. loop through the array and compare the words to the list of positive words.

4. if any of the words match, return true that the sentence is positive.

5. else, return false that the sentence is not positive.
assistant