I have the user input a string A for example "sun is clear". I have a string B in the database "sun cloud rain". How would I detect if part of String A is part of String B?
I used @sky.include?(activity.sky) where @sky is String A and activity.sky is String B. This works only when String A is sun.
String Aa is a one of words ofString B?AandB, a part ofAis always a part ofB. Proof: The empty string is part ofAand is also a part ofB.