code: def make_analysator(f):
      
      def text_analyse(text):
          try:
              rv = f(text)
          except Exception:
              return 0.0
          if not rv:
              return 0.0
          try:
              return min(1.0, max(0.0, float(rv)))
          except (ValueError, TypeError):
              return 0.0
      text_analyse.__doc__ = f.__doc__
      return staticmethod(text_analyse)
docs: Return a static text analyser function that returns float values.