In this paper, we give a definition of [Formula: see text]-valued functions from the ambient isotopy classes of spherical/plane curves derived from chord diagrams, denoted by [Formula: see text]. Then, we introduce certain elements of the free [Formula: see text]-module generated by the chord diagrams with at most [Formula: see text] chords, called relators of Type (I) ((SI[Formula: see text]I), (WI[Formula: see text]I), (SI[Formula: see text]I[Formula: see text]I), or (WI[Formula: see text]I[Formula: see text]I), respectively), and introduce another function [Formula: see text] derived from [Formula: see text]. The main result (Theorem 1) shows that if [Formula: see text] vanishes for the relators of Type (I) ((SI[Formula: see text]I), (WI[Formula: see text]I), (SI[Formula: see text]I[Formula: see text]I), or (WI[Formula: see text]I[Formula: see text]I), respectively), then [Formula: see text] is invariant under the Reidemeister move of type RI (strong RI[Formula: see text]I, weak RI[Formula: see text]I, strong RI[Formula: see text]I[Formula: see text]I, or weak RI[Formula: see text]I[Formula: see text]I, respectively) that is defined in [N. Ito and Y. Takimura, [Formula: see text] and weak [Formula: see text] homotopies on knot projections, J. Knot Theory Ramifications 22 (2013) 1350085 14 pp].