Given languages Z,L⊆Σ * , we say that Z is L-decomposable (resp., finitely L-decomposable) if there exists a non-trivial couple (A,B) of languages (resp., finite languages), such that Z=B∪AL and the operations are non-ambiguous. We prove that it is decidable whether Z is L-decomposable and whether Z is finitely L-decomposable, in the case Z and L are regular languages, and we provide a set of minimal decompositions (A,B) in the affirmative case. In the particular case Z=L, Z is L-decomposable if there exist languages A,B⊆Σ * , A≠∅, {1}, such that L=A * B with non-ambiguous operations. The result in this case has an important application, in which it allows to decide whether given a finite language S⊆Σ * , there exist finite languages C, P such that SC * P=Σ * and the operations are non-ambiguous, also providing a solution (C,P) in the affirmative case. This problem is strictly related to the factorization conjecture on codes stated by Schützenberger in 60ths and still open. We also show how to construct an infinite family of factorizing codes starting from one of them.