old_contents: import intentparser as ip
  
  if __name__ == "__main__":
      intent = ip.intentParser({
          'description' : {
                          "type" : 'FavMusicIntent',
                          "args" : [(ip.OPTIONAL, "musics_types")],
                          "keyword" : [
                          (ip.REQUIRE, "musics_keyword"),
                          (ip.OPTIONAL, "musics_types")
                          ]},
          'musics_keyword' : ['is', 'are', 'music', 'favourite', 'genre'],
          'musics_types' : [
              "pop",
              "rock",
              "jazz",
              "country",
              "reggae"
              ]
      })
      intent.teachWords(["I love Reggae music.", "Rock is my favourite.", "I love Country music genre."])
      print(intent.getResult("I love Rock music."))
      print(intent.getResult("Jazz is my favourite."))
  
new_contents: import intentparser as ip
  
  __author__ = 'Nonthakon Jitchiranant'
  
  if __name__ == "__main__":
      intent = ip.intentParser({
          'description' : {
                          "type" : 'FavMusicIntent',
                          "args" : [(ip.OPTIONAL, "musics_types")],
                          "keyword" : [
                          (ip.REQUIRE, "musics_keyword"),
                          (ip.OPTIONAL, "musics_types")
                          ]},
          'musics_keyword' : ['is', 'are', 'music', 'favourite', 'genre'],
          'musics_types' : [
              "pop",
              "rock",
              "jazz",
              "country",
              "reggae"
              ]
      })
      intent.teachWords(["I love Reggae music.", "Rock is my favourite.", "I love Country music genre."])
      print(intent.getResult("I love Rock music."))
      print(intent.getResult("Jazz is my favourite."))
  
subject: Update favourite-music-example.py