     message = message.replace(reg, members)
   return message
 
+# Note this matches (alias) :alias: and @alias
 buildRegExp = ->
   if useDynamicGroups
     aliases = '\\w+'
-  else
-    # Compile RegEx to match only the aliases
-    # Note this matches (alias) :alias: and @alias
+  else # Compile RegEx to match only defined aliases
     aliases = _.keys(buildGroupObject()).join('|')
   # The last group is a set of stop conditions (word boundaries or end of line)
   atRE = '(?:@(' + aliases + ')(?:\\b[^.]|$))'
   emojiRE = '(?:[(:])(' + aliases + ')(?:[:)])'
-
   return new RegExp(atRE + '|' + emojiRE, 'i')
 
 module.exports = (robot) ->

    return groupMap
  else
    return buildGroupObject()

userFromName = (name) ->
  allUsers = robot.brain.data.users

  groupCache = _.object(staticGroups)
  return groupCache

# Return Groups Mentioned in a message if there is a dynamic group.
getGroups = (text) ->
  if useDynamicGroups
    groupMap = {}
